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:
parent
1681f746c1
commit
127ce7abfe
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue