(bug 17615) nosummary option should be reassigned on preview/captcha
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 1 Apr 2012 13:37:10 +0000 (15:37 +0200)
committerBrion Vibber <brion@pobox.com>
Tue, 3 Apr 2012 17:46:53 +0000 (10:46 -0700)
Change-Id: I12f1cf37b7a093ca9f5b949e41fc482c6b7fb5fc

RELEASE-NOTES-1.20
includes/EditPage.php

index 40dbb32..3d9d333 100644 (file)
@@ -27,6 +27,7 @@ production.
 * (bug 30963) Option on Special:Prefixindex and Special:Allpages to not show redirects.
 * (bug 18062) new message when edit or create the local page of a shared file
 * (bug 22870) Separate interface message when creating a page
+* (bug 17615) nosummary option should be reassigned on preview/captcha
 
 === Bug fixes in 1.20 ===
 * (bug 30245) Use the correct way to construct a log page title.
index 5e3a964..0b879c1 100644 (file)
@@ -1801,6 +1801,11 @@ class EditPage {
                        );
                }
 
+               # When the summary is hidden, also hide them on preview/show changes
+               if( $this->nosummary ) {
+                       $wgOut->addHTML( Html::hidden( 'nosummary', true ) );
+               }
+
                # If a blank edit summary was previously provided, and the appropriate
                # user preference is active, pass a hidden tag as wpIgnoreBlankSummary. This will stop the
                # user being bounced back more than once in the event that a summary