mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
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();
|
||||
foreach ($this->vars() as $key => $var) {
|
||||
if ($var->hasBeenDeleted()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$vars->$key = $var->getValue();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user