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

Created on 19 December 2019, over 4 years ago
Updated 20 February 2023, over 1 year 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.69.0 2024