mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Default Pholio mocks to "Open" on create
Summary: When you currently create a Pholio Mock, it's closed if you didn't notice the select. This hides the input. Test Plan: Created a Pholio Mock, verified it was open Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9522
This commit is contained in:
parent
1676a4eece
commit
14afd2f6a4
1 changed files with 10 additions and 4 deletions
|
@ -324,14 +324,20 @@ final class PholioMockEditController extends PholioController {
|
|||
->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')
|
||||
|
|
Loading…
Reference in a new issue