mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
IcingaService: fix rendering when assigned to tpl
This commit is contained in:
parent
433cb887c0
commit
d008cb7ef9
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user