Differential D8853 Diff 21005 src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | foreach ($types as $type) { | ||||
if ($indexer->shouldIndexDocumentByPHID($fake_phid)) { | if ($indexer->shouldIndexDocumentByPHID($fake_phid)) { | ||||
$results[$typeconst] = $type->getTypeName(); | $results[$typeconst] = $type->getTypeName(); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
asort($results); | asort($results); | ||||
// Put tasks first, see T4606. | |||||
$results = array_select_keys( | |||||
$results, | |||||
array( | |||||
ManiphestPHIDTypeTask::TYPECONST, | |||||
)) + $results; | |||||
return $results; | return $results; | ||||
} | } | ||||
} | } |