Add form identifier to Special:BlockList
authorFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Tue, 18 Oct 2016 17:04:02 +0000 (19:04 +0200)
committerFlorian Schmidt <florian.schmidt.stargatewissen@gmail.com>
Fri, 4 Nov 2016 20:32:33 +0000 (21:32 +0100)
This will allow HTMLForm to indentify, if the form was
submitted and use the data of the request, instead of the
default data.

Bug: T147705
Change-Id: I1a5129eb6d24c3f4963bf63e9db9a41f68ef3bbc

includes/specials/SpecialBlockList.php

index 39ca8dd..0899d58 100644 (file)
@@ -105,6 +105,7 @@ class SpecialBlockList extends SpecialPage {
                $form = HTMLForm::factory( 'ooui', $fields, $context );
                $form
                        ->setMethod( 'get' )
+                       ->setFormIdentifier( 'blocklist' )
                        ->setWrapperLegendMsg( 'ipblocklist-legend' )
                        ->setSubmitTextMsg( 'ipblocklist-submit' )
                        ->setSubmitProgressive()