diff --git a/library/Director/Objects/IcingaService.php b/library/Director/Objects/IcingaService.php index f71d2d67..431f987f 100644 --- a/library/Director/Objects/IcingaService.php +++ b/library/Director/Objects/IcingaService.php @@ -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'); }