From 42a1d8e56daf3b5ee6d92befa6ef366d72cb66e9 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 16 Jun 2015 13:29:21 +0200 Subject: [PATCH] HostnotificationQuery: Ensure that notifications not sent to a contact are fetched refs #9009 --- .../Monitoring/Backend/Ido/Query/HostnotificationQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostnotificationQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostnotificationQuery.php index 678c4b2fa..338680ef4 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostnotificationQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostnotificationQuery.php @@ -132,12 +132,12 @@ class HostnotificationQuery extends IdoQuery */ protected function joinContactnotifications() { - $this->select->join( + $this->select->joinLeft( array('cn' => $this->prefix . 'contactnotifications'), 'cn.notification_id = hn.notification_id', array() ); - $this->select->join( + $this->select->joinLeft( array('cno' => $this->prefix . 'objects'), 'cno.object_id = cn.contact_object_id', array()