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…
Reference in New Issue