monitoring: Use grouping instead of distinct in the service downtime query
refs #9009
This commit is contained in:
parent
c3c1993870
commit
c993ee63b7
|
@ -112,7 +112,7 @@ class ServicedowntimeQuery extends IdoQuery
|
|||
'hgo.objecttype_id = ?',
|
||||
3
|
||||
);
|
||||
$this->distinct();
|
||||
$this->group(array('so.name2', 'so.name1'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -166,7 +166,7 @@ class ServicedowntimeQuery extends IdoQuery
|
|||
'sgo.objecttype_id = ?',
|
||||
4
|
||||
);
|
||||
$this->distinct();
|
||||
$this->group(array('so.name2', 'so.name1'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue