Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
58828f54
Commit
58828f54
authored
Jan 24, 2014
by
webchick
Browse files
Issue
#2169875
by yched: Remnant D7 code in NodeFormController needlessly skips submitForm() .
parent
6c7d2d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/node/lib/Drupal/node/NodeFormController.php
View file @
58828f54
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment