Page MenuHomePhabricator

D11750.id28326.diff
No OneTemporary

D11750.id28326.diff

diff --git a/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchQueryCustomField.php b/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchQueryCustomField.php
--- a/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchQueryCustomField.php
+++ b/src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchQueryCustomField.php
@@ -16,6 +16,7 @@
$engines = id(new PhutilSymbolLoader())
->setAncestorClass('PhabricatorApplicationSearchEngine')
->loadObjects();
+ $engines = mfilter($engines, 'canUseInPanelContext');
$value = $this->getFieldValue();
diff --git a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
--- a/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
+++ b/src/applications/search/engine/PhabricatorApplicationSearchEngine.php
@@ -46,6 +46,10 @@
return ($this->context == self::CONTEXT_PANEL);
}
+ public function canUseInPanelContext() {
+ return true;
+ }
+
public function saveQuery(PhabricatorSavedQuery $query) {
$query->setEngineClassName(get_class($this));

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 4, 12:02 AM (2 d, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7714659
Default Alt Text
D11750.id28326.diff (1 KB)

Event Timeline