hgo.name1 needs objects table to be around
This commit is contained in:
parent
93e54fac62
commit
76ecc9184d
|
@ -184,6 +184,11 @@ class HoststatusQuery extends AbstractQuery
|
|||
array('hg' => $this->prefix . 'hostgroups'),
|
||||
"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