Skip to content

Commit 0ca2d52

Browse files
committed
legacy/IcingaObject: Render interval properties properly
1 parent 9a1ad51 commit 0ca2d52

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/Director/Objects/IcingaObject.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,6 +1970,13 @@ protected function renderLegacyObjectProperty($key, $value)
19701970
}
19711971
}
19721972

1973+
if ($this->propertyIsInterval($key)) {
1974+
return c1::renderKeyValue(
1975+
$this->intervalProperties[$key],
1976+
c1::renderInterval($value)
1977+
);
1978+
}
1979+
19731980
if (substr($key, -3) === '_id'
19741981
&& $this->hasRelation($relKey = substr($key, 0, -3))
19751982
) {

0 commit comments

Comments
 (0)