Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14411668
D9890.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D9890.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 12:03 PM (10 h, 48 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6926130
Default Alt Text
D9890.diff (3 KB)
Attached To
Mode
D9890: Remove "searchproject" typeahead datasource
Attached
Detach File
Event Timeline
Log In to Comment