Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi Drupalers,
I installed Multiselect 7.x.1.9 and work nice, but when replace o update to 7.x.1.10 has problems. Js doesn't working.
I had to install improve multiselect and uninstall Multiselect.
Comments
Comment #1
xlyz CreditAttribution: xlyz commentedsame problem here. still investigating, but it seems that it does not add multiselect.js to the page
Comment #2
xlyz CreditAttribution: xlyz commentedit looks like that hook_field_widget_form() does not works when the form is built in code.
a quick workaround is adding js and css directly in your code,
but need some test to see if this fix everything or there are other problems
Comment #3
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedI installed the previous version (7.x-1.9), and this module still fails.
Is there a fix in the works for this?
Where does that code go and I'll install and test...
Comment #4
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedTry using an updated version of php
:-)
Comment #5
Nick Robillard CreditAttribution: Nick Robillard commentedI am also seeing this issue in 7.x-1.13 where hook_field_widget_form in multiselect module is never called. I would like to point out that the "fix" in #2 is not a fix at all. Even though the JS and CSS is added, other important logic is still missing - like support for #required and also the ability to remove all selections (if I remove all selections and save, the original selections remain unchanged).
I am using PHP 5.6 which is supported by Drupal 7 (minimum is 5.4). I don't think upgrading to a newer version of PHP is a reasonable solution. @fgjohnson do you know what exactly a newer version of PHP is solving?
Comment #6
DamienMcKennaFYI the "assigned" field is for indicating that you're currently working on an issue, once you've completed your work (or aren't intending to work on it) you should change it to "unassigned".