diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupQuery.php index 9ec523bb0..bf4bca20a 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/ServicegroupQuery.php @@ -10,6 +10,16 @@ class ServicegroupQuery extends IdoQuery */ protected $allowCustomVars = true; + /** + * {@inheritdoc} + */ + protected $groupBase = array('servicegroups' => array('sg.servicegroup_id', 'sgo.object_id')); + + /** + * {@inheritdoc} + */ + protected $groupOrigin = array('serviceobjects'); + /** * {@inheritdoc} */ @@ -132,17 +142,4 @@ class ServicegroupQuery extends IdoQuery array() ); } - - /** - * {@inheritdoc} - */ - public function getGroup() - { - $group = array(); - if ($this->hasJoinedVirtualTable('serviceobjects')) { - $group = array('sg.servicegroup_id', 'sgo.object_id'); - } - - return $group; - } }