From: Matthias Schmidt Date: Tue, 27 Jun 2017 18:11:36 +0000 (+0200) Subject: Exclude disabled comments in boxes X-Git-Tag: 3.1.0_Alpha_1~322 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0976c3afa5fe7a6136500ebb9dc1ab3500ca275b;p=GitHub%2FWoltLab%2FWCF.git Exclude disabled comments in boxes See #2219 --- 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);