mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaObject: unmodified object should be an object
This commit is contained in:
parent
ef50386cd7
commit
23333f1b77
@ -1467,6 +1467,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
public function getPlainUnmodifiedObject()
|
||||
{
|
||||
$props = array();
|
||||
|
||||
foreach ($this->getOriginalProperties() as $k => $v) {
|
||||
// Do not ship ids for IcingaObjects:
|
||||
if ($k === 'id' && $this->hasProperty('object_name')) {
|
||||
@ -1517,7 +1518,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
$props[$property] = $set->getPlainUnmodifiedObject();
|
||||
}
|
||||
|
||||
return $props;
|
||||
return (object) $props;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
|
Loading…
x
Reference in New Issue
Block a user