1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Search Typeahead now returns projects.

Summary: Search typeahead now returns project objects with project images :). I have set the displaytype to "Project" if that's okay. Alternatively  We can also set it to some short description of a given project. All this time, I was thinking Jump Nav to be the search typeahead ... I am so dumb ... Lolz :P

Test Plan: {F44336}

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin, AnhNhan

Maniphest Tasks: T2948

Differential Revision: https://secure.phabricator.com/D6057
This commit is contained in:
Afaque Hussain 2013-05-27 11:06:49 -07:00 committed by epriestley
parent f0b833769d
commit 015258a256

View file

@ -34,6 +34,7 @@ final class PhabricatorTypeaheadCommonDatasourceController
$need_applications = true;
$need_rich_data = true;
$need_symbols = true;
$need_projs = true;
break;
case 'searchowner':
$need_users = true;
@ -207,7 +208,9 @@ final class PhabricatorTypeaheadCommonDatasourceController
foreach ($projs as $proj) {
$results[] = id(new PhabricatorTypeaheadResult())
->setName($proj->getName())
->setDisplayType("Project")
->setURI('/project/view/'.$proj->getID().'/')
->setImageURI($proj->loadProfile()->loadProfileImageURI())
->setPHID($proj->getPHID());
}
}