Commit 58828f54 authored by webchick's avatar webchick

Issue #2169875 by yched: Remnant D7 code in NodeFormController needlessly skips submitForm() .

parent 6c7d2d87
......@@ -220,13 +220,6 @@ public function form(array $form, array &$form_state) {
'#default_value' => $node->isSticky(),
);
// This form uses a button-level #submit handler for the form's main submit
// action. node_form_submit() manually invokes all form-level #submit
// handlers of the form. Without explicitly setting #submit, Form API would
// auto-detect node_form_submit() as submit handler, but that is the
// button-level #submit handler for the 'Save' action.
$form += array('#submit' => array());
return parent::form($form, $form_state, $node);
}
......
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