From e8691b2cfbdf93116a70729c0434b87a66f69053 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Fri, 29 Apr 2016 21:04:31 +0200 Subject: [PATCH] Fixed incorrect parameter. --- CRM/Activity/Page/AJAX.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Activity/Page/AJAX.php b/CRM/Activity/Page/AJAX.php index 21164501e6..b91804d8aa 100644 --- a/CRM/Activity/Page/AJAX.php +++ b/CRM/Activity/Page/AJAX.php @@ -401,6 +401,11 @@ class CRM_Activity_Page_AJAX { $params = CRM_Core_Page_AJAX::defaultSortAndPagerParams(); $params += CRM_Core_Page_AJAX::validateParams($requiredParameters, $optionalParameters); + // To be consistent, the cid parameter should be renamed to contact_id in + // the template file, see templates/CRM/Activity/Selector/Selector.tpl + $params['contact_id'] = $params['cid']; + unset($params['cid']); + // get the contact activities $activities = CRM_Activity_BAO_Activity::getContactActivitySelector($params); -- 2.25.1