Service Status: Fix filter by hostgroup throwing an exception
fixes #4747
This commit is contained in:
parent
f8938b34a4
commit
103a4dbe91
|
@ -286,9 +286,13 @@ class StatusQuery extends AbstractQuery
|
|||
array()
|
||||
)->join(
|
||||
array('hg' => $this->prefix . 'hostgroups'),
|
||||
'hgm.hostgroup_id = hg' . $this->hostgroup_id,
|
||||
'hgm.hostgroup_id = hg.' . $this->hostgroup_id,
|
||||
array()
|
||||
);
|
||||
)->join(
|
||||
array('hgo' => $this->prefix . 'objects'),
|
||||
'hgo.' . $this->object_id . ' = hg.hostgroup_object_id AND hgo.is_active = 1',
|
||||
array()
|
||||
);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue