From cb846ceeceaf63789530c375e3f4ef563369698d Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 25 Jul 2017 17:54:12 +1000 Subject: [PATCH] Fix issues in order by clauses of reports showing errors in 7.1 --- CRM/Report/Form/Member/Summary.php | 2 +- CRM/Report/Form/Pledge/Summary.php | 2 +- CRM/Report/Form/Walklist/Walklist.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Report/Form/Member/Summary.php b/CRM/Report/Form/Member/Summary.php index e93372d32b..859eb0893d 100644 --- a/CRM/Report/Form/Member/Summary.php +++ b/CRM/Report/Form/Member/Summary.php @@ -358,7 +358,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form { } public function groupBy() { - $this->_groupBy = ""; + $this->_groupBy = array(); if (is_array($this->_params['group_bys']) && !empty($this->_params['group_bys']) ) { diff --git a/CRM/Report/Form/Pledge/Summary.php b/CRM/Report/Form/Pledge/Summary.php index d64e501e93..d957331a2f 100644 --- a/CRM/Report/Form/Pledge/Summary.php +++ b/CRM/Report/Form/Pledge/Summary.php @@ -244,7 +244,7 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form { } public function groupBy() { - $this->_groupBy = ""; + $this->_groupBy = array(); $append = FALSE; if (is_array($this->_params['group_bys']) && diff --git a/CRM/Report/Form/Walklist/Walklist.php b/CRM/Report/Form/Walklist/Walklist.php index 327d06119f..a539ee0004 100644 --- a/CRM/Report/Form/Walklist/Walklist.php +++ b/CRM/Report/Form/Walklist/Walklist.php @@ -223,7 +223,7 @@ FROM civicrm_contact {$this->_aliases['civicrm_contact']} {$this->_aclFrom } public function orderBy() { - $this->_orderBy = ""; + $this->_orderBy = array(); foreach ($this->_columns as $tableName => $table) { if (array_key_exists('order_bys', $table)) { foreach ($table['order_bys'] as $fieldName => $field) { -- 2.25.1