hgo.name1 needs objects table to be around

This commit is contained in:
Thomas Gelf 2013-08-20 23:38:45 +02:00 committed by Eric Lippmann
parent 93e54fac62
commit 76ecc9184d
1 changed files with 5 additions and 0 deletions

View File

@ -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;