From 0976c3afa5fe7a6136500ebb9dc1ab3500ca275b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 27 Jun 2017 20:11:36 +0200 Subject: [PATCH] Exclude disabled comments in boxes See #2219 --- .../lib/system/box/AbstractCommentListBoxController.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php b/wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php index 6f2c890630..c4e503fc5f 100644 --- a/wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php @@ -79,6 +79,7 @@ abstract class AbstractCommentListBoxController extends AbstractDatabaseObjectLi */ protected function getObjectList() { $commentList = new ViewableCommentList(); + $commentList->getConditionBuilder()->add('comment.isDisabled = ?', [0]); $commentList->getConditionBuilder()->add('comment.objectTypeID = ?', [$this->objectType->objectTypeID]); $this->applyObjectTypeFilters($commentList); -- 2.20.1