@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow prefilling a task's assignee by his PHID

Summary: Some scripts might find it easier to work with PHIDs instead of user names.

Test Plan:
Use ?assign=<username> and ?assign=<PHID-USER> with the create task URI.
See assignee input being filled correctly.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: epriestley

CC: epriestley, aran, Korvin

Differential Revision: https://secure.phabricator.com/D7401

authored by

Erik Fercak and committed by
epriestley
203d8208 e4787067

+11 -3
+11 -3
src/applications/maniphest/controller/ManiphestTaskEditController.php
··· 100 100 if ($can_edit_assign) { 101 101 $assign = $request->getStr('assign'); 102 102 if (strlen($assign)) { 103 - $assign_user = id(new PhabricatorUser())->loadOneWhere( 104 - 'username = %s', 105 - $assign); 103 + $assign_user = id(new PhabricatorPeopleQuery()) 104 + ->setViewer($user) 105 + ->withUsernames(array($assign)) 106 + ->executeOne(); 107 + if (!$assign_user) { 108 + $assign_user = id(new PhabricatorPeopleQuery()) 109 + ->setViewer($user) 110 + ->withPHIDs(array($assign)) 111 + ->executeOne(); 112 + } 113 + 106 114 if ($assign_user) { 107 115 $task->setOwnerPHID($assign_user->getPHID()); 108 116 }