Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15522822
D8778.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
971 B
Referenced Files
None
Subscribers
None
D8778.diff
View Options
diff --git a/src/applications/maniphest/controller/ManiphestTaskEditController.php b/src/applications/maniphest/controller/ManiphestTaskEditController.php
--- a/src/applications/maniphest/controller/ManiphestTaskEditController.php
+++ b/src/applications/maniphest/controller/ManiphestTaskEditController.php
@@ -58,7 +58,19 @@
if ($projects) {
$tokens = $request->getStrList('projects');
+ $type_project = PhabricatorProjectPHIDTypeProject::TYPECONST;
foreach ($tokens as $key => $token) {
+ if (phid_get_type($token) == $type_project) {
+ // If this is formatted like a PHID, leave it as-is.
+ continue;
+ }
+
+ if (preg_match('/^#/', $token)) {
+ // If this already has a "#", leave it as-is.
+ continue;
+ }
+
+ // Add a "#" prefix.
$tokens[$key] = '#'.$token;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 21, 9:38 PM (3 d, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7725651
Default Alt Text
D8778.diff (971 B)
Attached To
Mode
D8778: Let project prefilling accept PHIDs
Attached
Detach File
Event Timeline
Log In to Comment