Fixed incorrect parameter.
authorMattias Michaux <mattias.michaux@gmail.com>
Fri, 29 Apr 2016 19:04:31 +0000 (21:04 +0200)
committerMattias Michaux <mattias.michaux@gmail.com>
Fri, 29 Apr 2016 19:04:31 +0000 (21:04 +0200)
CRM/Activity/Page/AJAX.php

index 21164501e6939a7fb7ec16a0197972040c937310..b91804d8aa0e288ba7e7e006cc7d346502d421aa 100644 (file)
@@ -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);