From 79fa0b0397336a43df97485b9e8ff164c159762a Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 18 Feb 2014 16:32:41 -0800 Subject: [PATCH] Make projects appear in all mailable tokenizers Summary: Ref T4361. Projects are mailable now, so let them show up in mail contexts. Test Plan: Added a project as a CC to a task, filtered by project CCs, etc. Reviewers: btrahan, zeeg, dctrwatson Reviewed By: btrahan CC: aran Maniphest Tasks: T4361 Differential Revision: https://secure.phabricator.com/D8274 --- .../PhabricatorTypeaheadCommonDatasourceController.php | 1 + src/view/form/control/AphrontFormTokenizerControl.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php b/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php index 97e6ebcb7a..5c7ec10629 100644 --- a/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php +++ b/src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php @@ -63,6 +63,7 @@ final class PhabricatorTypeaheadCommonDatasourceController case 'allmailable': $need_users = true; $need_lists = true; + $need_projs = true; break; case 'projects': $need_projs = true; diff --git a/src/view/form/control/AphrontFormTokenizerControl.php b/src/view/form/control/AphrontFormTokenizerControl.php index a1cde86956..ae658d51b4 100644 --- a/src/view/form/control/AphrontFormTokenizerControl.php +++ b/src/view/form/control/AphrontFormTokenizerControl.php @@ -88,8 +88,8 @@ final class AphrontFormTokenizerControl extends AphrontFormControl { 'usersorprojects' => pht('Type a user or project name...'), 'searchowner' => pht('Type a user name...'), 'accounts' => pht('Type a user name...'), - 'mailable' => pht('Type a user or mailing list...'), - 'allmailable' => pht('Type a user or mailing list...'), + 'mailable' => pht('Type a user, project, or mailing list...'), + 'allmailable' => pht('Type a user, project, or mailing list...'), 'searchproject' => pht('Type a project name...'), 'projects' => pht('Type a project name...'), 'repositories' => pht('Type a repository name...'),