diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index 33827ade..c6f5c4a7 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -787,13 +787,14 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer } } - protected function renderRelationProperty($propertyName, $id) + protected function renderRelationProperty($propertyName, $id, $renderKey = null) { return c::renderKeyValue( - $propertyName, + $renderKey ?: $propertyName, c::renderString($this->getRelatedObjectName($propertyName, $id)) ); } + protected function renderCommandProperty($commandId, $propertyName = 'check_command') { return c::renderKeyValue(