Page MenuHomePhabricator

D9890.id23941.diff
No OneTemporary

D9890.id23941.diff

diff --git a/src/applications/maniphest/controller/ManiphestReportController.php b/src/applications/maniphest/controller/ManiphestReportController.php
--- a/src/applications/maniphest/controller/ManiphestReportController.php
+++ b/src/applications/maniphest/controller/ManiphestReportController.php
@@ -321,7 +321,7 @@
->setUser($user)
->appendChild(
id(new AphrontFormTokenizerControl())
- ->setDatasource('/typeahead/common/searchproject/')
+ ->setDatasource(new PhabricatorProjectDatasource())
->setLabel(pht('Project'))
->setLimit(1)
->setName('set_project')
diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php
--- a/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php
+++ b/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php
@@ -20,19 +20,13 @@
$raw_query = $request->getStr('raw');
$need_users = false;
- $need_projs = false;
$need_upforgrabs = false;
- $need_noproject = false;
$need_rich_data = false;
switch ($this->type) {
case 'searchowner':
$need_users = true;
$need_upforgrabs = true;
break;
- case 'searchproject':
- $need_projs = true;
- $need_noproject = true;
- break;
}
$results = array();
@@ -43,13 +37,6 @@
->setPHID(ManiphestTaskOwner::OWNER_UP_FOR_GRABS);
}
- if ($need_noproject) {
- $results[] = id(new PhabricatorTypeaheadResult())
- ->setName('noproject (No Project)')
- ->setPHID(ManiphestTaskOwner::PROJECT_NO_PROJECT);
- }
-
-
if ($need_users) {
$columns = array(
'isSystemAgent',
@@ -148,32 +135,6 @@
}
}
- if ($need_projs) {
- $projs = id(new PhabricatorProjectQuery())
- ->setViewer($viewer)
- ->needImages(true)
- ->execute();
- foreach ($projs as $proj) {
- $closed = null;
- if ($proj->isArchived()) {
- $closed = pht('Archived');
- }
-
- $proj_result = id(new PhabricatorTypeaheadResult())
- ->setName($proj->getName())
- ->setDisplayType('Project')
- ->setURI('/project/view/'.$proj->getID().'/')
- ->setPHID($proj->getPHID())
- ->setIcon($proj->getIcon())
- ->setPriorityType('proj')
- ->setClosed($closed);
-
- $proj_result->setImageURI($proj->getProfileImageURI());
-
- $results[] = $proj_result;
- }
- }
-
$content = mpull($results, 'getWireFormat');
if ($request->isAjax()) {
diff --git a/src/view/form/control/AphrontFormTokenizerControl.php b/src/view/form/control/AphrontFormTokenizerControl.php
--- a/src/view/form/control/AphrontFormTokenizerControl.php
+++ b/src/view/form/control/AphrontFormTokenizerControl.php
@@ -96,7 +96,6 @@
$map = array(
'searchowner' => pht('Type a user name...'),
- 'searchproject' => pht('Type a project name...'),
);
return idx($map, $request);

File Metadata

Mime Type
text/plain
Expires
Sat, May 11, 6:59 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6285058
Default Alt Text
D9890.id23941.diff (3 KB)

Event Timeline