* Don't override edit conflict suppression on section edits; section merging
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 2 Sep 2005 01:17:00 +0000 (01:17 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 2 Sep 2005 01:17:00 +0000 (01:17 +0000)
  should provide the expected transparency here and fits usage patterns better.

RELEASE-NOTES
includes/EditPage.php

index 6224efc..b5cf346 100644 (file)
@@ -75,6 +75,8 @@ fully support the editing toolbar, but was found to be too confusing.
 * Security fix for <math>
 * Security fix for tables
 * Security fix for Special:Upload license selection list
+* Don't override edit conflict suppression on section edits; section merging
+  should provide the expected transparency here and fits usage patterns better.
 
 
 === Caveats ===
index 5efe8c0..163a08a 100644 (file)
@@ -516,8 +516,8 @@ class EditPage {
                        $text = $this->mArticle->replaceSection( $this->section, $this->textbox1, $this->summary);
                }
 
-               # Suppress edit conflict with self
-               if ( ( 0 != $userid ) && ( $this->mArticle->getUser() == $userid ) ) {
+               # Suppress edit conflict with self, except for section edits where merging is required.
+               if ( ( $this->section == '' ) && ( 0 != $userid ) && ( $this->mArticle->getUser() == $userid ) ) {
                        wfDebug( "Suppressing edit conflict, same user.\n" );
                        $this->isConflict = false;
                } else {