Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/64521


Change subject: On submitted revdel form, prefill selected reason dropdown
......................................................................

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
---
M includes/specials/SpecialRevisiondelete.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/21/64521/1

diff --git a/includes/specials/SpecialRevisiondelete.php 
b/includes/specials/SpecialRevisiondelete.php
index 9f4b9da..1e9adf5 100644
--- a/includes/specials/SpecialRevisiondelete.php
+++ b/includes/specials/SpecialRevisiondelete.php
@@ -409,7 +409,7 @@
                                                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
                                                ) .
                                        '</td>' .
                                "</tr><tr>\n" .

-- 
To view, visit https://gerrit.wikimedia.org/r/64521
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5b16aef33bdbabbc9608faac7f090f8dadcf79d4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to