Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3216208
D25903.1741685597.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
833 B
Referenced Files
None
Subscribers
None
D25903.1741685597.diff
View Options
diff --git a/src/applications/tokens/controller/PhabricatorTokenGiveController.php b/src/applications/tokens/controller/PhabricatorTokenGiveController.php
--- a/src/applications/tokens/controller/PhabricatorTokenGiveController.php
+++ b/src/applications/tokens/controller/PhabricatorTokenGiveController.php
@@ -57,7 +57,11 @@
->setContentSource($content_source);
if ($is_give) {
$token_phid = $request->getStr('tokenPHID');
- $editor->addToken($handle->getPHID(), $token_phid);
+ if ($token_phid) {
+ $editor->addToken($handle->getPHID(), $token_phid);
+ }
+ // T16006 - if no $token_phid provided, ignore and go back to task
+ return id(new AphrontReloadResponse())->setURI($done_uri);
} else {
$editor->deleteToken($handle->getPHID());
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 09:33 (2 d, 11 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1244361
Default Alt Text
D25903.1741685597.diff (833 B)
Attached To
Mode
D25903: Avoid "No such token" exception going to /token/give/ directly
Attached
Detach File
Event Timeline
Log In to Comment