EditPage: Restore ability to provide edit summary for OOUI-style input
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 18 Apr 2017 16:52:53 +0000 (18:52 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 18 Apr 2017 18:09:11 +0000 (18:09 +0000)
The 'name' attribute was missing, so the field was not being submitted
with the form.

Change-Id: Ic7238b9bfe9ca254f844fb828cf09ecf44171461

includes/EditPage.php

index f97f164..1345fae 100644 (file)
@@ -3044,6 +3044,7 @@ class EditPage {
                // Note: the maxlength is overridden in JS to 255 and to make it use UTF-8 bytes, not characters.
                return ( is_array( $inputAttrs ) ? $inputAttrs : [] ) + [
                        'id' => 'wpSummary',
+                       'name' => 'wpSummary',
                        'maxlength' => '200',
                        'tabindex' => '1',
                        'size' => 60,