Skip to content

Commit

Permalink
monitoring/commands: Re-add the changed identifier to object features
Browse files Browse the repository at this point in the history
refs #6593
  • Loading branch information
lippserd committed Sep 12, 2014
1 parent 442f956 commit 4d784c6
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -20,7 +20,7 @@ class ToggleObjectFeaturesCommandForm extends ObjectsCommandForm
*/
public function init()
{
$this->setAttrib('class', 'inline');
$this->setAttrib('class', 'inline object-features');
}

/**
Expand Down Expand Up @@ -93,7 +93,11 @@ public function load(MonitoredObject $object)
{
$this->create();
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;
}
Expand Down

0 comments on commit 4d784c6

Please sign in to comment.