CRM-20207 Added invocation for selectWhereClause hook in activity SQL
authorEdsel <edsel.lopez@jmaconsulting.biz>
Thu, 2 Mar 2017 11:48:08 +0000 (17:18 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Wed, 5 Apr 2017 11:16:35 +0000 (16:46 +0530)
----------------------------------------
* CRM-20207: Introduce selectWhereClause hook for activity results on activity tab contact summary page
  https://issues.civicrm.org/jira/browse/CRM-20207

CRM/Activity/BAO/Activity.php

index 05e5d09de9b7d69b28adff8f47b87602d41ce31f..1294253228fe34cc0729d8ca43ae97ee5424322d 100644 (file)
@@ -1046,6 +1046,9 @@ LEFT JOIN   civicrm_case_activity ON ( civicrm_case_activity.activity_id = tbl.a
       }
     }
 
+    $aclClauses = array_filter(CRM_Activity_BAO_Activity::getSelectWhereClause());
+    $commonClauses += $aclClauses;
+
     $commonClause = implode(' AND ', $commonClauses);
 
     $includeCaseActivities = FALSE;