On widget build, a call to field_attach_form() is done to incorporate the fc entity fields in the fc element. The element itself is passed as the $form parameter and #entity_type and #bundle are set on it, overwritting the already set values of the fc element.

I think this is a not desired behaviour and correct values may be restored.

Files: 
CommentFileSizeAuthor
#1 field_collection-2113993-restore_entity_type_bundle.patch897 bytesjonhattan
PASSED: [[SimpleTest]]: [MySQL] 132 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new897 bytes
PASSED: [[SimpleTest]]: [MySQL] 132 pass(es).
[ View ]

As far as I've tested, restoring the values back doesn't break anything.

This helps fixing #1799522: Does not play nice with field collections, and I guess it also helps integration with other modules.