add filter for 'Activity type of the last activity' for case detail report
authoryashodha <yashodha@cividesk.com>
Tue, 2 Aug 2022 04:50:30 +0000 (10:20 +0530)
committeryashodha <yashodha@cividesk.com>
Tue, 2 Aug 2022 04:50:30 +0000 (10:20 +0530)
CRM/Report/Form/Case/Detail.php

index e2ec1096763ff64a6b686131cde4c05f340641a7..06783c2b97ed21282e1bc02885c730ca19661a15 100644 (file)
@@ -249,6 +249,12 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form {
           ],
         ],
         'filters' => [
+          'last_activity_activity_type' => [
+            'name' => 'activity_type_id',
+            'title' => ts('Activity type of the last activity'),
+            'operatorType' => CRM_Report_Form::OP_MULTISELECT,
+            'options' => CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE),
+          ],
           'last_activity_date_time' => [
             'name' => 'activity_date_time',
             'title' => ts('Last Action Date'),