mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Ido: Map h.host_object_id to s.host_object_id in the ServicegroupQuery
This is required to make filters work which filter by host custom variables without using any host related table.
This commit is contained in:
parent
b1f7923711
commit
93ec798c6b
@ -18,6 +18,9 @@ class ServicegroupQuery extends IdoQuery
|
|||||||
'hostgroups' => array(
|
'hostgroups' => array(
|
||||||
'hostgroup_name' => 'hgo.name1'
|
'hostgroup_name' => 'hgo.name1'
|
||||||
),
|
),
|
||||||
|
'hosts' => array(
|
||||||
|
'h.host_object_id' => 's.host_object_id'
|
||||||
|
),
|
||||||
'instances' => array(
|
'instances' => array(
|
||||||
'instance_name' => 'i.instance_name'
|
'instance_name' => 'i.instance_name'
|
||||||
),
|
),
|
||||||
@ -70,6 +73,16 @@ class ServicegroupQuery extends IdoQuery
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Join hosts
|
||||||
|
*
|
||||||
|
* This is required to make filters work which filter by host custom variables.
|
||||||
|
*/
|
||||||
|
protected function joinHosts()
|
||||||
|
{
|
||||||
|
$this->requireVirtualTable('services');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Join instances
|
* Join instances
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user