mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-06-04 14:22:26 -04:00
IcingaObject: ignore deleted vars for getVars
This is used when resolving plain objects
This commit is contained in:
parent
1f869fa001
commit
070d05d4a8
1 changed files with 4 additions and 0 deletions
|
|
@ -401,6 +401,10 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||
{
|
||||
$vars = (object) array();
|
||||
foreach ($this->vars() as $key => $var) {
|
||||
if ($var->hasBeenDeleted()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$vars->$key = $var->getValue();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue