Add "user" and "users" standard custom fields

Summary: These end up a little weird with subclassing instead of `switch`, but some day we could alias them to one another or something I guess. If I'm feeling brave, I might get rid of the "user" variant when I migrate Maniphest custom field specs, and turn it into "users, limit = 1" or something like that.

Test Plan: See screenshots.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D7010
This commit is contained in:
epriestley
2013-09-16 16:04:46 -07:00
parent 6115670615
commit ed7a5078f9
5 changed files with 147 additions and 2 deletions

View File

@@ -504,7 +504,7 @@ abstract class PhabricatorApplicationSearchEngine {
$handles = array();
if ($all_phids) {
$handles = id(new PhabricatorHandleQuery())
->setViewer($this->getViewer())
->setViewer($this->requireViewer())
->withPHIDs($all_phids)
->execute();
}