From 6b77dd8e3700f0eb46ba3d069b59c36dbaf2617c Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Wed, 11 Feb 2015 14:08:05 -0800 Subject: [PATCH] Dashboards - fix optionality of SearchEngines Summary: Ref T7234. I didn't know about this spot in D11750. Test Plan: ..the next diff really makes this work for the T7234 scenario. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7234 Differential Revision: https://secure.phabricator.com/D11751 --- .../PhabricatorDashboardPanelSearchApplicationCustomField.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchApplicationCustomField.php b/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchApplicationCustomField.php index 508486b379..bcc08f7ebf 100644 --- a/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchApplicationCustomField.php +++ b/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchApplicationCustomField.php @@ -16,6 +16,7 @@ final class PhabricatorDashboardPanelSearchApplicationCustomField $engines = id(new PhutilSymbolLoader()) ->setAncestorClass('PhabricatorApplicationSearchEngine') ->loadObjects(); + $engines = mfilter($engines, 'canUseInPanelContext'); $all_apps = id(new PhabricatorApplicationQuery()) ->setViewer($this->getViewer()) ->withUnlisted(false)