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.
Hello,
I have 2 icon fields in the same content type: "Icon 1" and "Icon 2".
When selecting a first choice in "Icon 1" and selecting a 2nd choice in "Icon 2", I loose my selection on "Icon 1".
Fyi, I will post a patch to make the selection work with different fields in the same content type.
Comment | File | Size | Author |
---|---|---|---|
#2 | icon_select-select_in_several_icon_fields-2882364-2-8.x-1.0-beta1.patch | 2.96 KB | make77 |
Comments
Comment #2
make77 CreditAttribution: make77 at Liip commentedI added a patch to fix this issue.
I also updated indenting and one variable name to match with Drupal JS coding styling.
Comment #3
ayalon CreditAttribution: ayalon at Liip commentedThx for the report. The fix is almost perfect. I would not wrap the AJAX Request into the each() statement. Else you will execute the AJAX request multiple times.
Comment #5
ayalon CreditAttribution: ayalon at Liip commentedThx for the patch. I commited the fix.
Comment #6
ayalon CreditAttribution: ayalon at Liip commented