Commit 1cd7cdf1 authored by smalot's avatar smalot Committed by Ra Mänd
Browse files

Issue #1549364 by yoshicn, RyanPrice, kscheirer, jamesmorrish, Greg McKeen,...

Issue #1549364 by yoshicn, RyanPrice, kscheirer, jamesmorrish, Greg McKeen, Sebastien @Actualys, frank.schalkwijk: Data not being saved on initial creation
parent 184a8bd2
......@@ -1670,7 +1670,7 @@ function field_collection_field_widget_embed_validate($element, &$form_state, $c
// Only if the form is being submitted, finish the collection entity and
// prepare it for saving.
if ($form_state['submitted'] && !form_get_errors()) {
if ($form_state['submitted'] && !form_get_error($element)) {
field_attach_submit('field_collection_item', $field_collection_item, $element, $form_state);
......
Markdown is supported
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