mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
IcingaObject: better way to get resolved props?
This commit is contained in:
parent
241404d9ba
commit
d4736f4a41
@ -2413,7 +2413,13 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
$props = array();
|
||||
|
||||
if ($resolved) {
|
||||
$p = $this->getResolvedProperties();
|
||||
$p = $this->getInheritedProperties();
|
||||
foreach ($this->properties as $k => $v) {
|
||||
if ($v === null && property_exists($p, $k)) {
|
||||
continue;
|
||||
}
|
||||
$p->$k = $v;
|
||||
}
|
||||
} else {
|
||||
$p = $this->properties;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user