1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-31 08:58:20 +01:00

Fix incorrect rendering of "Spaces" dropdown control when configuring EditEngine defaults

Summary:
Ref T10004. This could sometimes pass `false`, which counts as disabled.

Instead, pass `null` explicitly.

Test Plan: Edited default space on an EditEngine form.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10004

Differential Revision: https://secure.phabricator.com/D14858
This commit is contained in:
epriestley 2015-12-22 18:20:23 -08:00
parent 15550b5582
commit bb8cf8eca8

View file

@ -351,7 +351,7 @@ final class AphrontFormPolicyControl extends AphrontFormControl {
$viewer, $viewer,
$space_phid), $space_phid),
array( array(
'disabled' => $this->getDisabled(), 'disabled' => ($this->getDisabled() ? 'disabled' : null),
'name' => 'spacePHID', 'name' => 'spacePHID',
'class' => 'aphront-space-select-control-knob', 'class' => 'aphront-space-select-control-knob',
)); ));