legacy/IcingaObject: Render interval properties properly

This commit is contained in:
Markus Frosch 2018-04-26 16:46:50 +02:00
parent d4d309a704
commit ff0553c9dd

View File

@ -2075,6 +2075,13 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
}
}
if ($this->propertyIsInterval($key)) {
return c1::renderKeyValue(
$this->intervalProperties[$key],
c1::renderInterval($value)
);
}
if (substr($key, -3) === '_id'
&& $this->hasRelation($relKey = substr($key, 0, -3))
) {