IcingaObject: ignore deleted vars for getVars
This is used when resolving plain objects
This commit is contained in:
parent
1f869fa001
commit
070d05d4a8
|
@ -401,6 +401,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||||
{
|
{
|
||||||
$vars = (object) array();
|
$vars = (object) array();
|
||||||
foreach ($this->vars() as $key => $var) {
|
foreach ($this->vars() as $key => $var) {
|
||||||
|
if ($var->hasBeenDeleted()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$vars->$key = $var->getValue();
|
$vars->$key = $var->getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue