Require virtual table hosts

refs #3564
This commit is contained in:
Eric Lippmann 2018-11-14 10:21:17 +01:00
parent b4afdf4115
commit dda390b3d8

View File

@ -121,6 +121,8 @@ class HostcontactQuery extends IdoQuery
*/ */
protected function joinHostgroups() protected function joinHostgroups()
{ {
$this->requireVirtualTable('hosts');
$this->select->joinLeft( $this->select->joinLeft(
['hgm' => $this->prefix . 'hostgroup_members'], ['hgm' => $this->prefix . 'hostgroup_members'],
'hgm.host_object_id = ho.object_id', 'hgm.host_object_id = ho.object_id',