Page MenuHomePhabricator

D9522.id22826.diff
No OneTemporary

D9522.id22826.diff

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

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)

Event Timeline