From: Cyperghost Date: Fri, 1 Mar 2024 13:01:04 +0000 (+0100) Subject: Remove comments when removing queue objects X-Git-Tag: 6.0.11_dev_1~23^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cb8ab51b3001ac9e577343e53fd2eb8e92ea18d1;p=GitHub%2FWoltLab%2FWCF.git Remove comments when removing queue objects --- diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php index b58483f026..c9b494eb3a 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueManager.class.php @@ -8,6 +8,7 @@ use wcf\data\moderation\queue\ViewableModerationQueue; use wcf\data\object\type\ObjectType; use wcf\data\object\type\ObjectTypeCache; use wcf\data\user\User; +use wcf\system\comment\CommentHandler; use wcf\system\database\util\PreparedStatementConditionBuilder; use wcf\system\exception\SystemException; use wcf\system\SingletonFactory; @@ -435,6 +436,8 @@ class ModerationQueueManager extends SingletonFactory $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($conditions->getParameters()); + CommentHandler::getInstance()->deleteObjects('com.woltlab.wcf.moderation.queue', $queueIDs); + $this->resetModerationCount(); } }