From a43cae9eb8534e529557158e9550489c64e0e61d Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 18 Jun 2015 12:35:21 +0200 Subject: [PATCH] HostgroupsummaryQuery: PostgreSQL grouping... refs #9009 --- .../Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php index 7688d9292..e3524fc58 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php @@ -113,7 +113,7 @@ class HostgroupsummaryQuery extends IdoQuery $this->subQueries[] = $services; $this->summaryQuery = $this->db->select()->union(array($hosts, $services), Zend_Db_Select::SQL_UNION_ALL); $this->select->from(array('statussummary' => $this->summaryQuery), array()); - $this->group('hostgroup_name'); + $this->group(array('hostgroup_name', 'hostgroup_alias')); $this->joinedVirtualTables['hoststatussummary'] = true; }