Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13982415
D8807.id20905.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8807.id20905.diff
View Options
diff --git a/src/applications/maniphest/controller/ManiphestTaskDetailController.php b/src/applications/maniphest/controller/ManiphestTaskDetailController.php
--- a/src/applications/maniphest/controller/ManiphestTaskDetailController.php
+++ b/src/applications/maniphest/controller/ManiphestTaskDetailController.php
@@ -281,7 +281,16 @@
->setControlID('projects')
->setControlStyle('display: none')
->setID('projects-tokenizer')
- ->setDisableBehavior(true))
+ ->setDisableBehavior(true)
+ ->setCaption(
+ javelin_tag(
+ 'a',
+ array(
+ 'href' => '/project/create/',
+ 'mustcapture' => true,
+ 'sigil' => 'project-create',
+ ),
+ pht('Create New Project'))))
->appendChild(
id(new AphrontFormFileControl())
->setLabel(pht('File'))
@@ -297,6 +306,10 @@
->setUser($user))
->appendChild($submit_control);
+ Javelin::initBehavior('project-create', array(
+ 'tokenizerID' => 'projects-tokenizer',
+ ));
+
$control_map = array(
ManiphestTransaction::TYPE_STATUS => 'resolution',
ManiphestTransaction::TYPE_OWNER => 'assign_to',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 20, 11:07 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737594
Default Alt Text
D8807.id20905.diff (1 KB)
Attached To
Mode
D8807: Improving of "Associate Projects" action.
Attached
Detach File
Event Timeline
Log In to Comment