From a7498ca0d8423c5965d564d27e0d977629a908c9 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 25 Jun 2015 13:03:33 +0200 Subject: [PATCH] HostcommentQuery: Fix grouping when services are being joined fixes #9503 --- .../library/Monitoring/Backend/Ido/Query/HostcommentQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php index 63b76fa22..d649f2739 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php @@ -157,7 +157,7 @@ class HostcommentQuery extends IdoQuery public function getGroup() { $group = array(); - if ($this->hasJoinedVirtualTable('hostgroups') || $this->hasJoinedVirtualTable('servicegroups')) { + if ($this->hasJoinedVirtualTable('hostgroups') || $this->hasJoinedVirtualTable('services')) { $group = array('c.comment_id', 'ho.object_id'); if ($this->hasJoinedVirtualTable('hosts')) { $group[] = 'h.host_id';