Index: trunk/phase3/includes/specials/SpecialUserrights.php |
— | — | @@ -414,7 +414,7 @@ |
415 | 415 | * @param $groups Array: Array of groups the user is in |
416 | 416 | */ |
417 | 417 | protected function showEditUserGroupsForm( $user, $groups ) { |
418 | | - global $wgOut, $wgUser, $wgLang; |
| 418 | + global $wgOut, $wgUser, $wgLang, $wgRequest; |
419 | 419 | |
420 | 420 | $list = array(); |
421 | 421 | foreach( $groups as $group ) { |
— | — | @@ -453,7 +453,8 @@ |
454 | 454 | Xml::label( wfMsg( 'userrights-reason' ), 'wpReason' ) . |
455 | 455 | "</td> |
456 | 456 | <td class='mw-input'>" . |
457 | | - Xml::input( 'user-reason', 60, false, array( 'id' => 'wpReason', 'maxlength' => 255 ) ) . |
| 457 | + Xml::input( 'user-reason', 60, $wgRequest->getVal( 'user-reason', false ), |
| 458 | + array( 'id' => 'wpReason', 'maxlength' => 255 ) ) . |
458 | 459 | "</td> |
459 | 460 | </tr> |
460 | 461 | <tr> |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -56,7 +56,8 @@ |
57 | 57 | * Introduced the edittools-upload message, which will be inserted under the |
58 | 58 | upload form instead of edittools if available |
59 | 59 | * (bug 26285) Extensions will be automatically generated on upload if the user |
60 | | - specified a filename without extension. |
| 60 | + specified a filename without extension. |
| 61 | +* (bug 26851) Special:UserRights now allows to prefill the reason field |
61 | 62 | |
62 | 63 | === Bug fixes in 1.18 === |
63 | 64 | * (bug 23119) WikiError class and subclasses are now marked as deprecated |