@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.

Let project prefilling accept PHIDs

Summary: I recently made this better about accepting project names, but we use it in some cases with PHIDs. Make that work properly again.

Test Plan: Clicked "New Task" from a project page.

Reviewers: chad, btrahan

Reviewed By: btrahan

Subscribers: epriestley

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

+12
+12
src/applications/maniphest/controller/ManiphestTaskEditController.php
··· 58 58 if ($projects) { 59 59 $tokens = $request->getStrList('projects'); 60 60 61 + $type_project = PhabricatorProjectPHIDTypeProject::TYPECONST; 61 62 foreach ($tokens as $key => $token) { 63 + if (phid_get_type($token) == $type_project) { 64 + // If this is formatted like a PHID, leave it as-is. 65 + continue; 66 + } 67 + 68 + if (preg_match('/^#/', $token)) { 69 + // If this already has a "#", leave it as-is. 70 + continue; 71 + } 72 + 73 + // Add a "#" prefix. 62 74 $tokens[$key] = '#'.$token; 63 75 } 64 76