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.

CommentFileSizeAuthor
#2 media-gallery-field-collections-2.patch813 bytesJoeMcGuire
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JoeMcGuire created an issue. See original summary.

JoeMcGuire’s picture

Fix 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 of module_load_include() so that the correct includes are available on ajax requests via the form cache.

Moloc’s picture

Does 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)

ivnish’s picture

Status: Active » Closed (outdated)