fix query

This commit is contained in:
Yuri Kuznetsov
2014-07-18 10:31:01 +03:00
parent 4737c506f2
commit e4947830db
@@ -35,7 +35,8 @@ class Contact extends \Espo\Core\ORM\Repositories\RDB
}
$params['customJoin'] .= "
LEFT JOIN `account_contact` AS accountContact ON accountContact.contact_id = contact.id AND accountContact.account_id = contact.account_id
LEFT JOIN `account_contact` AS accountContact
ON accountContact.contact_id = contact.id AND accountContact.account_id = contact.account_id AND accountContact.deleted = 0
";
}