HostgroupsummaryQuery: PostgreSQL grouping...

refs #9009
This commit is contained in:
Johannes Meyer 2015-06-18 12:35:21 +02:00
parent 5ef56fc9b2
commit a43cae9eb8
1 changed files with 1 additions and 1 deletions

View File

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