Commit 3a881f51 authored by epriestley's avatar epriestley
Browse files

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
parent 48f6bd9f
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment