From: Matthias Schmidt Date: Sat, 24 Dec 2016 09:02:32 +0000 (+0100) Subject: Exclude menu boxes in box search X-Git-Tag: 3.0.0_RC_3~55 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5c8049ebd39015774227cc481a7dca08c27430d5;p=GitHub%2FWoltLab%2FWCF.git Exclude menu boxes in box search --- diff --git a/wcfsetup/install/files/lib/system/search/acp/BoxACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/BoxACPSearchResultProvider.class.php index fad46c11db..714903078f 100644 --- a/wcfsetup/install/files/lib/system/search/acp/BoxACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/BoxACPSearchResultProvider.class.php @@ -24,6 +24,7 @@ class BoxACPSearchResultProvider implements IACPSearchResultProvider { $results = []; $boxList = new BoxList(); + $boxList->getConditionBuilder()->add('box.boxType <> ?', ['menu']); $boxList->getConditionBuilder()->add('box.name LIKE ?', ['%'.$query.'%']); $boxList->sqlLimit = 10; $boxList->sqlOrderBy = 'box.name';