Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13983832
D9522.id22826.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1013 B
Referenced Files
None
Subscribers
None
D9522.id22826.diff
View Options
diff --git a/src/applications/pholio/controller/PholioMockEditController.php b/src/applications/pholio/controller/PholioMockEditController.php
--- a/src/applications/pholio/controller/PholioMockEditController.php
+++ b/src/applications/pholio/controller/PholioMockEditController.php
@@ -324,14 +324,20 @@
->setName('description')
->setValue($v_desc)
->setLabel(pht('Description'))
- ->setUser($user))
- ->appendChild(
+ ->setUser($user));
+
+ if ($this->id) {
+ $form->appendChild(
id(new AphrontFormSelectControl())
->setLabel(pht('Status'))
->setName('status')
->setValue($mock->getStatus())
- ->setOptions($mock->getStatuses()))
- ->appendChild(
+ ->setOptions($mock->getStatuses()));
+ } else {
+ $form->addHiddenInput('status', 'open');
+ }
+
+ $form->appendChild(
id(new AphrontFormTokenizerControl())
->setLabel(pht('Projects'))
->setName('projects')
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 21, 9:01 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712443
Default Alt Text
D9522.id22826.diff (1013 B)
Attached To
Mode
D9522: Default Pholio mocks to "Open" on create
Attached
Detach File
Event Timeline
Log In to Comment