Skip to content

Commit

Permalink
Merge pull request #16393 from demeritcowboy/activity-report-pager-crash
Browse files Browse the repository at this point in the history
dev/core#1552 Fatal error using pager on Activity Detail Report when Include Case Activities is Yes
eileenmcnaughton authored Jan 29, 2020
2 parents 26d5758 + 7bc28fa commit abf310c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Report/Form/Activity.php
Original file line number Diff line number Diff line change
@@ -351,7 +351,8 @@ public function __construct() {

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',

0 comments on commit abf310c

Please sign in to comment.