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 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 commentedThis patch doesn't seam to work, same probelm as bevore.
Comment #3
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 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 commentedSorry, i got another version. Now it works for me, too. Great work, thank you!
Comment #7
fabsor commentedCommited, thanks!