1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +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')
->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')