mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
ServicenotificationQuery: Ensure that notifications not sent to a contact are fetched
refs #9009
This commit is contained in:
parent
42a1d8e56d
commit
bf70ec2802
@ -133,12 +133,12 @@ class ServicenotificationQuery extends IdoQuery
|
||||
*/
|
||||
protected function joinContactnotifications()
|
||||
{
|
||||
$this->select->join(
|
||||
$this->select->joinLeft(
|
||||
array('cn' => $this->prefix . 'contactnotifications'),
|
||||
'cn.notification_id = sn.notification_id',
|
||||
array()
|
||||
);
|
||||
$this->select->join(
|
||||
$this->select->joinLeft(
|
||||
array('cno' => $this->prefix . 'objects'),
|
||||
'cno.object_id = cn.contact_object_id',
|
||||
array()
|
||||
|
Loading…
x
Reference in New Issue
Block a user