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.
Line 98 on multiselect.module assumes there's always some nid associated with item,
so it'll give warning/error when entity reference is used.
Comment | File | Size | Author |
---|---|---|---|
#2 | multiselect-1864062-use_column_name-2.patch | 877 bytes | JvE |
Comments
Comment #1
jdleonardAgreed. I think we need to check the field type and if it's an entity reference, use target_id instead of nid
Comment #2
JvE CreditAttribution: JvE commentedAttached a patch to use the $value_key rather than nid.
Comment #3
anouHello,
I didn't saw your post (and patch) before doing this one. I did it for multiple issues and also for this one. I though to mention it here because I think it's related (not duplicate).
I changed the title because I think it's easier to find your post with the PHP error. Change it back if I'm wrong.
Cheers.
Comment #4
jdleonardPatch makes sense and works as expected. Thanks!