Commit 482d0d31 authored by fago's avatar fago
Browse files

Revert "Issue #1329856 by blainelang, Morpheus80ta, jec006, serbanbjd: Only...

Revert "Issue #1329856 by blainelang, Morpheus80ta, jec006, serbanbjd: Only run validation when the form is actually submitted."

This reverts commit 96eff7c2.
parent 15c64a99
......@@ -1317,7 +1317,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() && $form_state['clicked_button']['#name'] == 'op') {
if ($form_state['submitted'] && !form_get_errors()) {
field_attach_submit('field_collection_item', $field_collection_item, $element, $form_state);
......
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