mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
IDO: treat contacts of services of hosts as direct contacts of the hosts
refs #3088
This commit is contained in:
parent
96aac70109
commit
bbca113adc
@ -148,6 +148,7 @@ class ContactQuery extends IdoQuery
|
||||
*/
|
||||
protected function joinHosts()
|
||||
{
|
||||
$this->requireVirtualTable('services');
|
||||
$this->select->joinLeft(
|
||||
array('hc' => $this->prefix . 'host_contacts'),
|
||||
'hc.contact_object_id = c.contact_object_id',
|
||||
@ -158,7 +159,7 @@ class ContactQuery extends IdoQuery
|
||||
array()
|
||||
)->joinLeft(
|
||||
array('ho' => $this->prefix . 'objects'),
|
||||
'ho.object_id = h.host_object_id AND ho.is_active = 1',
|
||||
'(ho.object_id = h.host_object_id OR ho.object_id = s.host_object_id) AND ho.is_active = 1',
|
||||
array()
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user