Service Status: Fix filter by hostgroup throwing an exception

fixes #4747
This commit is contained in:
Eric Lippmann 2013-10-15 15:29:54 +02:00
parent f8938b34a4
commit 103a4dbe91
1 changed files with 6 additions and 2 deletions

View File

@ -286,9 +286,13 @@ class StatusQuery extends AbstractQuery
array() array()
)->join( )->join(
array('hg' => $this->prefix . 'hostgroups'), array('hg' => $this->prefix . 'hostgroups'),
'hgm.hostgroup_id = hg' . $this->hostgroup_id, 'hgm.hostgroup_id = hg.' . $this->hostgroup_id,
array() array()
); )->join(
array('hgo' => $this->prefix . 'objects'),
'hgo.' . $this->object_id . ' = hg.hostgroup_object_id AND hgo.is_active = 1',
array()
);
return $this; return $this;
} }