Skip to content

Commit

Permalink
Merge pull request #21501 from JKingsnorth/add-sorting-to-event-summa…
Browse files Browse the repository at this point in the history
…ry-report

Add sort functionality to event summary report
  • Loading branch information
eileenmcnaughton authored Sep 16, 2021
2 parents d7f747c + a99d1a2 commit 5dd2c1d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CRM/Report/Form/Event/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 5dd2c1d

Please sign in to comment.