monitoring: Fix pagination of the host group overview

refs #9009
This commit is contained in:
Eric Lippmann 2015-06-05 10:16:41 +02:00
parent 7b176261f8
commit 480becd3d6
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}