From e77fdb89997fce78430b701fb3bcb073b98561c5 Mon Sep 17 00:00:00 2001 From: Dayllan Maza Date: Mon, 4 Feb 2019 17:31:55 -0500 Subject: [PATCH] Fix 'ipb_sitewide' not matching parent block after update Autoblocks ipb_sitewide was not being updated when changing the parent block from sitewide to partial and vice-versa Bug: T215205 Change-Id: Ied5a8361a733c47f0afea78cc955732261ede446 --- includes/Block.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Block.php b/includes/Block.php index ea76cd6689..db5fec3d36 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -727,6 +727,7 @@ class Block { 'ipb_create_account' => $this->prevents( 'createaccount' ), 'ipb_deleted' => (int)$this->mHideName, // typecast required for SQLite 'ipb_allow_usertalk' => !$this->prevents( 'editownusertalk' ), + 'ipb_sitewide' => $this->isSitewide(), ] + CommentStore::getStore()->insert( $dbw, 'ipb_reason', $this->mReason ) + ActorMigration::newMigration()->getInsertValues( $dbw, 'ipb_by', $this->getBlocker() ); } -- 2.20.1