From 480becd3d6b19a4104349c08e29db93f620458fe Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 5 Jun 2015 10:16:41 +0200 Subject: [PATCH] monitoring: Fix pagination of the host group overview refs #9009 --- .../Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php | 3 ++- 1 file changed, 2 insertions(+), 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 42e379e01..045682cd6 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php @@ -112,7 +112,8 @@ 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())->group('hostgroup_name'); + $this->select->from(array('statussummary' => $this->summaryQuery), array()); + $this->group('hostgroup_name'); $this->joinedVirtualTables['hoststatussummary'] = true; }