Use service status query again for the service group summary

This commit is contained in:
Eric Lippmann 2017-07-25 13:55:05 +02:00
parent a3ac61c0ef
commit 754b48fb6b

View File

@ -61,7 +61,7 @@ class ServicegroupsummaryQuery extends IdoQuery
{
// TODO(el): Allow to switch between hard and soft service_states
$subQuery = $this->createSubQuery(
'Servicegroup',
'Servicestatus',
array(
'servicegroup_alias',
'servicegroup_name',
@ -70,6 +70,7 @@ class ServicegroupsummaryQuery extends IdoQuery
)
);
$subQuery->setIsSubQuery(true);
$subQuery->select()->where('sgo.name1 IS NOT NULL');
$this->subQuery = $subQuery;
$this->select->from(array('servicesgroupsummary' => $this->subQuery), array());
$this->group(array('servicegroup_name'));