From: Dayllan Maza Date: Mon, 4 Feb 2019 22:31:55 +0000 (-0500) Subject: Fix 'ipb_sitewide' not matching parent block after update X-Git-Tag: 1.34.0-rc.0~2938^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Bar?a=commitdiff_plain;h=e77fdb89997fce78430b701fb3bcb073b98561c5;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() ); }