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.
Field collections on file entities is currently broken when editing both a single file (media-gallery/detail/1/5) and the the multi edit page (node/%node/multiedit).
Ajax errors are turned when interfacing with the delete and "Add another item" buttons.
Comment | File | Size | Author |
---|---|---|---|
#2 | media-gallery-field-collections-2.patch | 813 bytes | JoeMcGuire |
Comments
Comment #2
JoeMcGuire CreditAttribution: JoeMcGuire commentedFix attached for a single item edit form ONLY. No solution yet for the multi edit page.
The architecture is to use
form_load_include()
instead ofmodule_load_include()
so that the correct includes are available on ajax requests via the form cache.Comment #3
Moloc CreditAttribution: Moloc commentedDoes this also belong to the 7.x-2.x branch?
Can you provide a step by step guide, how we can reproduce this issue?
I installed the field_collection module, attached it to the image file type and provided 5 entities with integer values. Reordering / changing values works fine without any error in firebug.
I also tried Adding / remove colection fields without any issue. (on the multiedit page i could see, that the buttons are missing / placed wrong. this may be an issue out of media_gallery)
Comment #4
ivnish CreditAttribution: ivnish commented