Closed (fixed)
Project:
References dialog
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2012 at 14:19 UTC
Updated:
14 Jun 2012 at 08:11 UTC
Jump to comment: Most recent file
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!