ServicenotificationQuery: Ensure that notifications not sent to a contact are fetched

refs #9009
This commit is contained in:
Johannes Meyer 2015-06-16 13:29:31 +02:00
parent 42a1d8e56d
commit bf70ec2802
1 changed files with 2 additions and 2 deletions

View File

@ -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()