monitoring/security: Fix that toggling instance features is always disabled

In HTML5 the presence of a boolean attribute on an element represents the true value,
and the absence of the attribute represents the false value.

In Zend we have to set null for the absence of the attribute and the empty string for the
presence of the attribute.
This commit is contained in:
Eric Lippmann 2015-01-30 10:47:02 +01:00
parent 1681f746c1
commit 127ce7abfe
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
} else {
$notificationDescription = null;
}
$toggleDisabled = ! $this->hasPermission('monitoring/command/feature/instance');
$toggleDisabled = $this->hasPermission('monitoring/command/feature/instance') ? null : '';
$this->addElements(array(
array(
'checkbox',