IcingaService: fix rendering when assigned to tpl

This commit is contained in:
Thomas Gelf 2016-03-16 14:32:23 +01:00
parent 433cb887c0
commit d008cb7ef9

View File

@ -113,6 +113,11 @@ class IcingaService extends IcingaObject
public function renderHost_id()
{
// @codingStandardsIgnoreEnd
if ($this->hasBeenAssignedToHostTemplate()) {
return '';
}
return $this->renderRelationProperty('host', $this->host_id, 'host_name');
}