Fix Special:NewSection showNoRedirectPage form handling (2)
authorDannyS712 <DannyS712.enwiki@gmail.com>
Thu, 8 Aug 2019 08:50:05 +0000 (08:50 +0000)
committerMobrovac <mobrovac@wikimedia.org>
Thu, 8 Aug 2019 09:10:23 +0000 (09:10 +0000)
Bug: T207577
Change-Id: I869501fde15d0c306cefb96de6678cd580074d20

includes/specials/SpecialNewSection.php

index 62379f5..a24d8cd 100644 (file)
@@ -52,6 +52,7 @@ class SpecialNewSection extends RedirectSpecialPage {
                                'type' => 'text',
                                'name' => 'page',
                                'label-message' => 'newsection-page',
+                               'required' => true,
                        ],
                ], $this->getContext(), 'newsection' );
                $form->setSubmitTextMsg( 'newsection-submit' );