HostnotificationQuery: Ensure that notifications not sent to a contact are fetched
refs #9009
This commit is contained in:
parent
3cf7e93a10
commit
42a1d8e56d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue