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.
I am using References Dialog together with References module. I have a content type that has a multivalue node reference field.
After adding another node reference field item I can't add any new values nor edit the existing values.
Comment | File | Size | Author |
---|---|---|---|
#1 | references_dialog_1504498_multivalue_node_reference.patch | 770 bytes | martins.bertins |
Comments
Comment #1
martins.bertins CreditAttribution: martins.bertins commentedThe problem is that in hook_element_info_alter() the after build function is added to the same element more than once if the field has multiple values.
Created a patch that prevents that.
Comment #2
manuelBS CreditAttribution: manuelBS commentedThis patch doesn't seam to work, same probelm as bevore.
Comment #3
martins.bertins CreditAttribution: martins.bertins commentedI am using References 7.x-2.0 and References dialog 7.x-1.x-dev. The patch applies with no errors and the multivalue field works as expected.
Are there any differences in your environment?
Comment #4
MXTThis patch works very well for me: thank you!!!
I'm using http://drupal.org/project/entityreference instead of References.
Can this patch be committed please?
Thank you
Comment #5
nyl_auster CreditAttribution: nyl_auster commentedThanks you very much for your patch. Works like a charm now.
Sounds like a major bug for me, because it became impossible to reference something once you clicked on "add more values".
edit : i'm using References dialog 7.x-1.x-dev and references version = "7.x-2.0"
Comment #6
manuelBS CreditAttribution: manuelBS commentedSorry, i got another version. Now it works for me, too. Great work, thank you!
Comment #7
fabsor CreditAttribution: fabsor commentedCommited, thanks!