mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-19 19:21:10 +01:00
Put "Task" first on global search result type list
Summary: Fixes T4606. Also shortens two unusual type names which are currently inconsistent. Test Plan: Expanded advanced search. Reviewers: chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T4606 Differential Revision: https://secure.phabricator.com/D8853
This commit is contained in:
parent
48f6bd9fea
commit
3a881f5108
3 changed files with 9 additions and 2 deletions
|
@ -9,7 +9,7 @@ final class DifferentialPHIDTypeRevision extends PhabricatorPHIDType {
|
|||
}
|
||||
|
||||
public function getTypeName() {
|
||||
return pht('Differential Revision');
|
||||
return pht('Revision');
|
||||
}
|
||||
|
||||
public function newObject() {
|
||||
|
|
|
@ -9,7 +9,7 @@ final class PhabricatorPeoplePHIDTypeUser extends PhabricatorPHIDType {
|
|||
}
|
||||
|
||||
public function getTypeName() {
|
||||
return pht('Phabricator User');
|
||||
return pht('User');
|
||||
}
|
||||
|
||||
public function getTypeIcon() {
|
||||
|
|
|
@ -216,6 +216,13 @@ final class PhabricatorSearchApplicationSearchEngine
|
|||
|
||||
asort($results);
|
||||
|
||||
// Put tasks first, see T4606.
|
||||
$results = array_select_keys(
|
||||
$results,
|
||||
array(
|
||||
ManiphestPHIDTypeTask::TYPECONST,
|
||||
)) + $results;
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue