1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 13:52:40 +01:00

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
This commit is contained in:
Bob Trahan 2015-02-11 14:08:05 -08:00
parent e23351ea36
commit 6b77dd8e37

View file

@ -16,6 +16,7 @@ final class PhabricatorDashboardPanelSearchApplicationCustomField
$engines = id(new PhutilSymbolLoader()) $engines = id(new PhutilSymbolLoader())
->setAncestorClass('PhabricatorApplicationSearchEngine') ->setAncestorClass('PhabricatorApplicationSearchEngine')
->loadObjects(); ->loadObjects();
$engines = mfilter($engines, 'canUseInPanelContext');
$all_apps = id(new PhabricatorApplicationQuery()) $all_apps = id(new PhabricatorApplicationQuery())
->setViewer($this->getViewer()) ->setViewer($this->getViewer())
->withUnlisted(false) ->withUnlisted(false)