monitoring/commands: Re-add the changed identifier to object features

refs #6593
This commit is contained in:
Eric Lippmann 2014-09-12 16:42:00 +02:00
parent 442f956945
commit 4d784c6097
1 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class ToggleObjectFeaturesCommandForm extends ObjectsCommandForm
*/ */
public function init() public function init()
{ {
$this->setAttrib('class', 'inline'); $this->setAttrib('class', 'inline object-features');
} }
/** /**
@ -93,7 +93,11 @@ class ToggleObjectFeaturesCommandForm extends ObjectsCommandForm
{ {
$this->create(); $this->create();
foreach ($this->getValues() as $feature => $enabled) { foreach ($this->getValues() as $feature => $enabled) {
$this->getElement($feature)->setChecked($object->{$feature}); $element = $this->getElement($feature);
$element->setChecked($object->{$feature});
if ((bool) $object->{$feature . '_changed'} === true) {
$element->setDescription(mt('monitoring', 'changed'));
}
} }
return $this; return $this;
} }