Merge pull request #3617 from Icinga/fix/contacts-hostgroup-filter
Fix SQL error in contact list when filtering for hostgroups
This commit is contained in:
commit
a2697d9497
|
@ -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',
|
||||
|
@ -194,7 +196,7 @@ class HostcontactQuery extends IdoQuery
|
|||
*/
|
||||
protected function joinServices()
|
||||
{
|
||||
$this->joinHosts();
|
||||
$this->requireVirtualTable('hosts');
|
||||
|
||||
$this->select->joinLeft(
|
||||
['s' => $this->prefix . 'services'],
|
||||
|
|
Loading…
Reference in New Issue