From dda390b3d863f0b372f64bb891888cd73ef9f9c0 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 14 Nov 2018 10:21:17 +0100 Subject: [PATCH] Require virtual table hosts refs #3564 --- .../library/Monitoring/Backend/Ido/Query/HostcontactQuery.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcontactQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcontactQuery.php index fade4ed3f..7959af516 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcontactQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcontactQuery.php @@ -121,6 +121,8 @@ class HostcontactQuery extends IdoQuery */ protected function joinHostgroups() { + $this->requireVirtualTable('hosts'); + $this->select->joinLeft( ['hgm' => $this->prefix . 'hostgroup_members'], 'hgm.host_object_id = ho.object_id',