CRM-17560 - Sql join type fix for civictm_activity_contact
authorzarandras <molnar.andras.jozsef@gmail.com>
Fri, 13 Nov 2015 12:52:42 +0000 (13:52 +0100)
committerzarandras <molnar.andras.jozsef@gmail.com>
Fri, 13 Nov 2015 21:49:36 +0000 (22:49 +0100)
CRM/Activity/BAO/Query.php

index 41cde09c5c75268a8d317347cd97aaa9f89f04b0..2c817a2d9072becb85de62ddfe6b66e3b0467ec2 100644 (file)
@@ -351,9 +351,9 @@ class CRM_Activity_BAO_Query {
         //from civicrm_activity_target or civicrm_activity_assignment.
         //as component specific activities does not have entry in
         //activity target table so lets consider civicrm_activity_assignment.
-        $from .= " INNER JOIN civicrm_activity_contact
+        $from .= " $side JOIN civicrm_activity_contact
                       ON ( civicrm_activity_contact.contact_id = contact_a.id ) ";
-        $from .= " INNER JOIN civicrm_activity
+        $from .= " $side JOIN civicrm_activity
                       ON ( civicrm_activity.id = civicrm_activity_contact.activity_id
                       AND civicrm_activity.is_deleted = 0 AND civicrm_activity.is_current_revision = 1 )";