CustomVariables: set modified from outside

This commit is contained in:
Thomas Gelf 2016-02-23 10:14:42 +01:00
parent 190b3efb98
commit 99608310c5
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
return $this;
} else {
if (get_class($this->vars[$key]) === get_class($value)) {
$this->vars[$key]->setValue($value->getValue());
$this->vars[$key]->setValue($value->getValue())->setModified();
} else {
$this->vars[$key] = $value->setLoadedFromDb()->setModified();
}