The max_choices property doesn't work in JS because of legacy settings call

Created on 19 December 2019, about 5 years ago
Updated 20 February 2023, almost 2 years ago

Hi!

In term_reference_tree.js there was a legacy call to try and get settings from Drupal.settings, while drupalSettings object is what should've been used. Because of this, the script that makes checkboxes disabled when user checks max_choices count of them, doesn't work.

I have checked this both in dev and alpha-3 versions, the bus is in place in both.

Attaching the patch to fix the issue.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇷🇺Russia graker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024