From 60c41e018514c247a400fad74ddd4cf4e055c9f4 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Sat, 1 Apr 2017 13:14:32 -0400 Subject: [PATCH] CRM-20368 case summary report --- CRM/Report/Form/Case/Summary.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Case/Summary.php b/CRM/Report/Form/Case/Summary.php index 2ecaa34a6a..2482254f3c 100644 --- a/CRM/Report/Form/Case/Summary.php +++ b/CRM/Report/Form/Case/Summary.php @@ -61,7 +61,7 @@ class CRM_Report_Form_Case_Summary extends CRM_Report_Form { 'fields' => array( 'client_name' => array( 'name' => 'sort_name', - 'title' => ts('Client'), + 'title' => ts('Contact Name'), 'required' => TRUE, ), 'id' => array( @@ -69,6 +69,13 @@ class CRM_Report_Form_Case_Summary extends CRM_Report_Form { 'required' => TRUE, ), ), + 'order_bys' => array( + 'client_name' => array( + 'title' => ts('Contact Name'), + 'name' => 'sort_name' + ), + ), + 'grouping' => 'case-fields', ), 'civicrm_case' => array( 'dao' => 'CRM_Case_DAO_Case', @@ -139,6 +146,18 @@ class CRM_Report_Form_Case_Summary extends CRM_Report_Form { 'default' => 0, ), ), + 'order_bys' => array( + 'start_date' => array( + 'title' => ts('Start Date'), + ), + 'end_date' => array( + 'title' => ts('End Date'), + ), + 'status_id' => array( + 'title' => ts('Status'), + ), + ), + 'grouping' => 'case-fields' ), 'civicrm_contact' => array( 'dao' => 'CRM_Contact_DAO_Contact', -- 2.25.1