From: Alexander Ebert Date: Fri, 12 Dec 2014 18:26:24 +0000 (+0100) Subject: Fixed moderation queue dropdown returning all items X-Git-Tag: 2.1.0_Beta_1~56 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f34eb85958b5fb03b210421c8da129257a6ba0c;p=GitHub%2FWoltLab%2FWCF.git Fixed moderation queue dropdown returning all items --- diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php index d74005355c..6f0d42c52e 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php @@ -128,7 +128,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { $queues = array(); if (!empty($queueIDs)) { $queueList = new ViewableModerationQueueList(); - $queueList->setObjectIDs($queueIDs); + $queueList->getConditionBuilder()->add("moderation_queue.queueID IN (?)", array($queueIDs)); $queueList->loadUserProfiles = true; $queueList->readObjects(); $queues = $queueList->getObjects(); @@ -141,6 +141,7 @@ class ModerationQueueAction extends AbstractDatabaseObjectAction { // load more entries to fill up list $queueList = new ViewableModerationQueueList(); $queueList->getConditionBuilder()->add("moderation_queue.status IN (?)", array(array(ModerationQueue::STATUS_OUTSTANDING, ModerationQueue::STATUS_PROCESSING))); + $queueList->getConditionBuilder()->add("moderation_queue.queueID NOT IN (?)", array($queueIDs)); $queueList->sqlOrderBy = "moderation_queue.lastChangeTime DESC"; $queueList->sqlLimit = 5 - $count; $queueList->loadUserProfiles = true;