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…
Reference in New Issue