Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14390268
D8807.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.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, Dec 22, 6:17 PM (9 h, 19 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6919362
Default Alt Text
D8807.diff (1 KB)
Attached To
Mode
D8807: Improving of "Associate Projects" action.
Attached
Detach File
Event Timeline
Log In to Comment