diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupQuery.php index aaa72a166..f1cc0df82 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupQuery.php @@ -13,6 +13,16 @@ class HostgroupQuery extends IdoQuery */ protected $allowCustomVars = true; + /** + * {@inheritdoc} + */ + protected $groupBase = array('hostgroups' => array('hg.hostgroup_id', 'hgo.object_id')); + + /** + * {@inheritdoc} + */ + protected $groupOrigin = array('hostobjects'); + /** * {@inheritdoc} */ @@ -140,17 +150,4 @@ class HostgroupQuery extends IdoQuery array() ); } - - /** - * {@inheritdoc} - */ - public function getGroup() - { - $group = array(); - if ($this->hasJoinedVirtualTable('hostobjects')) { - $group = array('hg.hostgroup_id', 'hgo.object_id'); - } - - return $group; - } }