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.
I fixed the problem multivalue_settings had with field_collection (see #1328984: Does not work within field collection), but the ajax part wasn't working, inside field_collection_field_widget_embed_validate is was possible to get an empty $field_collection_item. Attached patch 'fixes' this.
Comment | File | Size | Author |
---|---|---|---|
#1 | field_collection_field_collection_item_empty.patch | 1.25 KB | attiks |
field_collection_field_collection_item_empty.patch | 823 bytes | attiks | |
Comments
Comment #1
attiks CreditAttribution: attiks commentedbetter patch
Comment #2
jmuzz CreditAttribution: jmuzz commentedI don't understand why the function would be passed an empty item. An object without values in the fields might make sense, but why should a completely empty object validate?
Could it be a problem with multivalue_settings ?
Comment #3
jmuzz CreditAttribution: jmuzz commented