Swap SET and WHERE statements in ChangeTags::undefineTag
authorAmir Sarabadani <ladsgroup@gmail.com>
Tue, 14 Aug 2018 19:00:43 +0000 (21:00 +0200)
committerKrinkle <krinklemail@gmail.com>
Tue, 14 Aug 2018 19:11:25 +0000 (19:11 +0000)
Follows-up 417d8036ae9.

It should work the other way around, I'm so stupid.

Bug: T201934
Change-Id: I69132b2c237d05242ec6ed1a1e3aca7886edf2bc

includes/changetags/ChangeTags.php

index 3bb777e..b5bf488 100644 (file)
@@ -916,8 +916,8 @@ class ChangeTags {
                if ( $wgChangeTagsSchemaMigrationStage > MIGRATION_OLD ) {
                        $dbw->update(
                                'change_tag_def',
-                               [ 'ctd_name' => $tag ],
                                [ 'ctd_user_defined' => 0 ],
+                               [ 'ctd_name' => $tag ],
                                __METHOD__
                        );