From a3faf0b169c47b2c3e3837b651d5c04dd53e2372 Mon Sep 17 00:00:00 2001 From: slashrsm Date: Fri, 26 Feb 2016 20:28:09 +0530 Subject: [PATCH] Issue #2674698 by slashrsm, Primsi: [Chase IEF] Rely on IEF for submit and save --- .../src/Plugin/EntityBrowser/Widget/EntityForm.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php b/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php index 7309ef0..50d33ec 100644 --- a/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php +++ b/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php @@ -41,7 +41,6 @@ public function getForm(array &$original_form, FormStateInterface $form_state, a 'inline_entity_form' => [ '#type' => 'inline_entity_form', '#op' => 'add', - '#handle_submit' => FALSE, '#entity_type' => $this->configuration['entity_type'], '#bundle' => $this->configuration['bundle'], ], @@ -52,11 +51,6 @@ public function getForm(array &$original_form, FormStateInterface $form_state, a * {@inheritdoc} */ public function submit(array &$element, array &$form, FormStateInterface $form_state) { - // We handle submit on our own in order to take control over what's going on. - foreach ($element['inline_entity_form']['#ief_element_submit'] as $function) { - $function($element['inline_entity_form'], $form_state); - } - $this->selectEntities([$element['inline_entity_form']['#entity']], $form_state); }