From 20d74a685fd900a8201159f1efc6eac3f53de930 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Fri, 28 Mar 2025 13:16:29 +0100 Subject: [PATCH] GridRenderer::assembleVisual(): Fix visual link - Don't show all objct if the group is emplty --- library/Icingadb/View/HostgroupGridRenderer.php | 2 +- library/Icingadb/View/ServicegroupGridRenderer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icingadb/View/HostgroupGridRenderer.php b/library/Icingadb/View/HostgroupGridRenderer.php index 04cf2a28..f3823e1f 100644 --- a/library/Icingadb/View/HostgroupGridRenderer.php +++ b/library/Icingadb/View/HostgroupGridRenderer.php @@ -115,7 +115,7 @@ class HostgroupGridRenderer implements ItemRenderer } else { $link = new Link( new StateBadge(0, 'none'), - $url, + Links::hostgroup($item), [ 'title' => sprintf( $this->translate('There are no hosts in host group "%s"'), diff --git a/library/Icingadb/View/ServicegroupGridRenderer.php b/library/Icingadb/View/ServicegroupGridRenderer.php index 96a41841..cb62cbcd 100644 --- a/library/Icingadb/View/ServicegroupGridRenderer.php +++ b/library/Icingadb/View/ServicegroupGridRenderer.php @@ -205,7 +205,7 @@ class ServicegroupGridRenderer implements ItemRenderer } else { $link = new Link( new StateBadge(0, 'none'), - $url, + Links::servicegroup($item), [ 'title' => sprintf( $this->translate('There are no services in service group "%s"'),