From d008cb7ef9eb6cad3e548c414f8dcd64e257926c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 16 Mar 2016 14:32:23 +0100 Subject: [PATCH] IcingaService: fix rendering when assigned to tpl --- library/Director/Objects/IcingaService.php | 5 +++++ 1 file changed, 5 insertions(+) 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'); }