IcingaObject: override key in renderRelationProperty

This commit is contained in:
Thomas Gelf 2015-12-09 15:05:31 +01:00
parent 58eb71dd5f
commit bac3969cdd
1 changed files with 3 additions and 2 deletions

View File

@ -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(