From 6b844ec70c163aea3175d8205c308d7c08e8b3a5 Mon Sep 17 00:00:00 2001 From: Edsel Date: Thu, 2 Mar 2017 17:18:08 +0530 Subject: [PATCH] CRM-20207 Added invocation for selectWhereClause hook in activity SQL ---------------------------------------- * 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index 05e5d09de9..1294253228 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -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; -- 2.25.1