Commit bf39de1f authored by basvanderheijden's avatar basvanderheijden Committed by Ra Mänd
Browse files

Issue #1280568 by basvanderheijden: Embedded widget crash Node edit form

parent 80d1275b
......@@ -1232,7 +1232,7 @@ function field_collection_field_attach_form($entity_type, $entity, &$form, &$for
$field = field_info_field($field_name);
if ($field['type'] == 'field_collection' && field_collection_hide_blank_items($field)
&& field_access('edit', $field, $entity_type) && $instance['widget']['type'] == 'field_collection_embed') {
&& field_access('edit', $field, $entity_type)) {
$element_langcode = $form[$field_name]['#language'];
if ($form[$field_name][$element_langcode]['#max_delta'] > 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment