From ac54133f4898a71aedc494af5117cc53d4377e76 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Sun, 19 May 2013 15:26:44 +0100 Subject: [PATCH] On submitted revdel form, prefill selected reason dropdown When you submit a revdel form, the 'other/additional' reason will be in the returned form. However, the common reason dropdown always defaults to 'none'. This commit makes it use the previous common reason option. Bug: 48508 Change-Id: I5b16aef33bdbabbc9608faac7f090f8dadcf79d4 --- includes/specials/SpecialRevisiondelete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 9f4b9da84d..1e9adf5767 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -409,7 +409,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { Xml::listDropDown( 'wpRevDeleteReasonList', $this->msg( 'revdelete-reason-dropdown' )->inContentLanguage()->text(), $this->msg( 'revdelete-reasonotherlist' )->inContentLanguage()->text(), - '', 'wpReasonDropDown', 1 + $this->getRequest()->getText( 'wpRevDeleteReasonList', 'other' ), 'wpReasonDropDown', 1 ) . '' . "\n" . -- 2.20.1