ServicegroupsummaryQuery: PostgreSQL grouping...

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

View File

@ -105,7 +105,7 @@ class ServicegroupsummaryQuery 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('servicegroup_name');
$this->group(array('servicegroup_name', 'servicegroup_alias'));
$this->joinedVirtualTables['servicestatussummary'] = true;
}