IcingaObject: override key in renderRelationProperty
This commit is contained in:
parent
58eb71dd5f
commit
bac3969cdd
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue