From: Andrew Garrett Date: Fri, 16 Feb 2007 07:21:03 +0000 (+0000) Subject: Fix for ProtectionForm - make mwProtect-reason retain its value when errors are spat... X-Git-Tag: 1.31.0-rc.0~54030 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=da8ae236ae004585033050be64dd6d3dd6d73e5d;p=lhc%2Fweb%2Fwiklou.git Fix for ProtectionForm - make mwProtect-reason retain its value when errors are spat as errors are :-) --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 4cd7dd44e6..0b96521628 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -273,7 +273,8 @@ class ProtectionForm { wfElement( 'input', array( 'size' => 60, 'name' => $id, - 'id' => $id ) ); + 'id' => $id, + 'value' => $this->mReason ) ); } function buildCascadeInput() {