mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Remove unused apps from the DocumentType typeahead
Summary: Ref T10951. This diff removes uninstalled applications from the result set for DocumentType restults Test Plan: Uninstall an application (diviner for example), then go to the document type search menu and ensure that the uninstalled application doesn't show up. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley Maniphest Tasks: T10951 Differential Revision: https://secure.phabricator.com/D16445
This commit is contained in:
parent
a1f25fdb3e
commit
7f7c3acfac
1 changed files with 3 additions and 1 deletions
|
@ -25,8 +25,10 @@ final class PhabricatorSearchDocumentTypeDatasource
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildResults() {
|
private function buildResults() {
|
||||||
|
$viewer = $this->getViewer();
|
||||||
$types =
|
$types =
|
||||||
PhabricatorSearchApplicationSearchEngine::getIndexableDocumentTypes();
|
PhabricatorSearchApplicationSearchEngine::getIndexableDocumentTypes(
|
||||||
|
$viewer);
|
||||||
|
|
||||||
$icons = mpull(
|
$icons = mpull(
|
||||||
PhabricatorPHIDType::getAllTypes(),
|
PhabricatorPHIDType::getAllTypes(),
|
||||||
|
|
Loading…
Reference in a new issue