Fix the groupsummarie's grouping in case of PostgreSQL

fixes #7859
This commit is contained in:
Johannes Meyer 2014-12-01 14:36:32 +01:00
parent 7a243a0655
commit 2b14dbaff3
1 changed files with 9 additions and 1 deletions

View File

@ -72,7 +72,15 @@ class GroupSummaryQuery extends IdoQuery
) )
); );
if (in_array('servicegroup', $this->desiredColumns)) { if (in_array('servicegroup', $this->desiredColumns)) {
$hosts->group(array('sgo.name1', 'ho.object_id', 'state', 'acknowledged', 'in_downtime')); $hosts->group(array(
'sgo.name1',
'ho.object_id',
'state',
'acknowledged',
'in_downtime',
'state_change',
'severity'
));
} }
$services = $this->createSubQuery( $services = $this->createSubQuery(
'Status', 'Status',