Exclude disabled comments in boxes
authorMatthias Schmidt <gravatronics@live.com>
Tue, 27 Jun 2017 18:11:36 +0000 (20:11 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 27 Jun 2017 18:11:36 +0000 (20:11 +0200)
See #2219

wcfsetup/install/files/lib/system/box/AbstractCommentListBoxController.class.php

index 6f2c89063064ac0916518df4e767dd6423b98da0..c4e503fc5fbe78fba552a3c34ae3a9a03bc4ab82 100644 (file)
@@ -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);