fatal error when using pager
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 28 Jan 2020 19:14:31 +0000 (14:14 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 28 Jan 2020 19:14:31 +0000 (14:14 -0500)
CRM/Report/Form/Activity.php

index a8d019f0c78686f9e09a5d61749e76a2e551312c..fa43ee5f26f8aaf78720df1951638cdf5556e50f 100644 (file)
@@ -351,7 +351,8 @@ class CRM_Report_Form_Activity extends CRM_Report_Form {
 
   public function preProcess() {
     // Is "Include Case Activities" selected?  If yes, include the case_id as a hidden column
-    $includeCaseActivities = CRM_Utils_Request::retrieveValue('include_case_activities_value', 'Boolean');
+    $formToUse = $this->noController ? NULL : $this;
+    $includeCaseActivities = CRM_Utils_Request::retrieve('include_case_activities_value', 'Boolean', $formToUse);
     if (!empty($includeCaseActivities)) {
       $this->_columns['civicrm_case_activity'] = [
         'dao' => 'CRM_Case_DAO_CaseActivity',