From a99d1a289613b9dbc4d2cd1ca6527aeb34c44cd4 Mon Sep 17 00:00:00 2001 From: John Kingsnorth Date: Thu, 16 Sep 2021 11:13:31 +0100 Subject: [PATCH] Add sort functionality to event summary report --- CRM/Report/Form/Event/Summary.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CRM/Report/Form/Event/Summary.php b/CRM/Report/Form/Event/Summary.php index 11af2ed73a54..308d07edaf97 100644 --- a/CRM/Report/Form/Event/Summary.php +++ b/CRM/Report/Form/Event/Summary.php @@ -85,6 +85,23 @@ public function __construct() { 'operatorType' => CRM_Report_Form::OP_DATE, ], ], + 'order_bys' => [ + 'event_start_date' => [ + 'title' => ts('Event Start Date'), + 'default' => '1', + 'default_weight' => '0', + 'default_order' => 'DESC', + ], + 'event_end_date' => [ + 'title' => ts('Event End Date'), + ], + 'max_participants' => [ + 'title' => ts('Capacity'), + ], + 'title' => [ + 'title' => ts('Event Title'), + ], + ], ], ]; $this->_currencyColumn = 'civicrm_participant_fee_currency';