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 a multilingual site, and I installed your module.
The module works like a charm on a vanilla install, but if you enable translation, with Field translation, things start to break.
I am adding a small module with a minor change, that should help people if you are facing the issue.
Update: I never stated what the problem is.
The problem is, the right side block which says "Selected Options:" is always empty and never contains any data.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2422981-6-multiselect_multilingual.patch | 760 bytes | Jelle_S |
Comments
Comment #1
vaibhavjainComment #2
vaibhavjainAlso, I see the code added in this issue -> https://www.drupal.org/node/1585484, also contain "LANGUAGE_NONE" which is a Multilingual killer.
Please use "$element['#language']" which will allow per element level language control.
However, I may be wrong, haven't tested it in all scenarios, but AFAIK, language in elements is added everytime, regardless of the node translation or field translations, or others.
So the new code looks like this
Comment #3
vaibhavjainComment #4
rcodina CreditAttribution: rcodina commentedComment #5
rcodina CreditAttribution: rcodina commentedI have problems too in multilingual site. I have an Entity Reference field (referencing a taxonomy vocabulary) with multiple values. Multiselect is the choosed widget for it. If I edit an english node with taxonomy "Breakfast" selected, when I edit the node in spanish i don't see "Desayuno" selected (nothing is selected). Your patch doens't work for me.
I think this module needs more testing under international sites and entity reference fields.
As a workaround, use this module: Improved Multi Select
Also, check out this ER issue.
Comment #6
Jelle_SPatch no longer applied for me in the latest stable version so here's a reroll.