From 47d66b4c31931094ccb95805ac50b27218ad5370 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 27 Apr 2015 19:04:40 +0530 Subject: [PATCH] api test fixes --- CRM/Report/Form/Event/ParticipantListCount.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CRM/Report/Form/Event/ParticipantListCount.php b/CRM/Report/Form/Event/ParticipantListCount.php index 1ca8e8ba80..dfd83d9aad 100644 --- a/CRM/Report/Form/Event/ParticipantListCount.php +++ b/CRM/Report/Form/Event/ParticipantListCount.php @@ -114,6 +114,12 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event { ), 'grouping' => 'contact-fields', 'order_bys' => array( + 'sort_name' => array( + 'title' => ts('Last Name, First Name'), + 'default' => '1', + 'default_weight' => '0', + 'default_order' => 'ASC', + ), 'first_name' => array( 'name' => 'first_name', 'title' => ts('First Name'), @@ -480,9 +486,6 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event { $this->_groupBy = "ORDER BY " . implode(', ', $this->_groupBy) . ", {$this->_aliases['civicrm_contact']}.sort_name"; } - else { - $this->_groupBy = "ORDER BY {$this->_aliases['civicrm_contact']}.sort_name"; - } $this->_groupBy = "GROUP BY {$this->_aliases['civicrm_participant']}.id " . $this->_groupBy; } -- 2.25.1