From: Brion Vibber Date: Wed, 7 Jan 2009 04:34:01 +0000 (+0000) Subject: Revert r45340 "(bug 16793) text entered into the log entry should remain when an... X-Git-Tag: 1.31.0-rc.0~43525 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=8d787dbab760c9cfba70c34d24f86ac6ef14549f;p=lhc%2Fweb%2Fwiklou.git Revert r45340 "(bug 16793) text entered into the log entry should remain when an error is returned" Incomplete & kinda broken: This is conflicting between the two forms on the page when transwiki import is available: 1. The transwiki form's comment field isn't filled out at all. Note this is the only one that most Wikipedia admins will see, since upload import is usually disabled... 2. Both forms submit the comment field as 'log-comment' and store it into $this->logcomment, so if it were filled out the same way you'd get the text from whichever one you submitted put into both. Only the form that actually got submitted and errored out should have its comment field prefilled. --- diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index d08121496d..5e1a653329 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -158,7 +158,7 @@ class SpecialImport extends SpecialPage { Xml::label( wfMsg( 'import-comment' ), 'mw-import-comment' ) . " " . - Xml::input( 'log-comment', 50, $this->logcomment, + Xml::input( 'log-comment', 50, '', array( 'id' => 'mw-import-comment', 'type' => 'text' ) ) . ' ' . "