diff --git a/CRM/Civicase/XMLProcessor/Report.php b/CRM/Civicase/XMLProcessor/Report.php index bdfbf3aae..4d63b0f30 100644 --- a/CRM/Civicase/XMLProcessor/Report.php +++ b/CRM/Civicase/XMLProcessor/Report.php @@ -67,6 +67,7 @@ public static function getCaseReport($clientID, $caseID, $activitySetName, $para $template->assign('caseId', $caseID); $template->assign('clientID', $clientID); $template->assign('activitySetName', $activitySetName); + $allActivityTypes = CRM_Case_PseudoConstant::caseActivityType(); if (!empty($params['is_redact'])) { $report->_isRedact = TRUE; @@ -96,10 +97,10 @@ public static function getCaseReport($clientID, $caseID, $activitySetName, $para if ($activitySetName && !empty($activitySetNames[$activitySetName])) { $timelineActivities = $report->getActivityTypes($xml, $activitySetName); - $activityTypes = !empty($timelineActivities) ? $timelineActivities : CRM_Case_XMLProcessor::allActivityTypes(); + $activityTypes = !empty($timelineActivities) ? $timelineActivities : $allActivityTypes; } else { - $activityTypes = CRM_Case_XMLProcessor::allActivityTypes(); + $activityTypes = $allActivityTypes; } if (!$activityTypes) {