1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 15:21:03 +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:
Chad Little 2014-06-13 18:13:25 -07:00
parent 1676a4eece
commit 14afd2f6a4

View file

@ -324,14 +324,20 @@ final class PholioMockEditController extends PholioController {
->setName('description') ->setName('description')
->setValue($v_desc) ->setValue($v_desc)
->setLabel(pht('Description')) ->setLabel(pht('Description'))
->setUser($user)) ->setUser($user));
->appendChild(
if ($this->id) {
$form->appendChild(
id(new AphrontFormSelectControl()) id(new AphrontFormSelectControl())
->setLabel(pht('Status')) ->setLabel(pht('Status'))
->setName('status') ->setName('status')
->setValue($mock->getStatus()) ->setValue($mock->getStatus())
->setOptions($mock->getStatuses())) ->setOptions($mock->getStatuses()));
->appendChild( } else {
$form->addHiddenInput('status', 'open');
}
$form->appendChild(
id(new AphrontFormTokenizerControl()) id(new AphrontFormTokenizerControl())
->setLabel(pht('Projects')) ->setLabel(pht('Projects'))
->setName('projects') ->setName('projects')