From f4424189f125e0725ea9c3f6f3ba0c15833c5728 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 28 Feb 2015 13:13:25 +0100 Subject: [PATCH] Fix reporting content with non-outstanding moderation queue entry 35e19e581a5e61f13d37e536710604283b1f0ebf did not adjust `ModerationQueueReportManager::hasPendingReport()` to consider the new moderation queue statuses `ModerationQueue::STATUS_REJECTED` and `ModerationQueue::STATUS_CONFIRMED` so that once reported content could not be reported again. --- .../moderation/queue/ModerationQueueReportManager.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php index 401a33863c..6c28d06737 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php @@ -62,12 +62,13 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager { FROM wcf".WCF_N."_moderation_queue WHERE objectTypeID = ? AND objectID = ? - AND status <> ?"; + AND status IN (?, ?)"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( $objectTypeID, $objectID, - ModerationQueue::STATUS_DONE + ModerationQueue::STATUS_OUTSTANDING, + ModerationQueue::STATUS_PROCESSING )); return $statement->fetchColumn() > 0; -- 2.20.1