Fix issues in order by clauses of reports showing errors in 7.1
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 25 Jul 2017 07:54:12 +0000 (17:54 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 29 Jul 2017 23:41:36 +0000 (09:41 +1000)
CRM/Report/Form/Member/Summary.php
CRM/Report/Form/Pledge/Summary.php
CRM/Report/Form/Walklist/Walklist.php

index e93372d32b9dba4d6ea58497f15258fcb44fc272..859eb0893df0e0c2724b360a05c53499d0fc09c5 100644 (file)
@@ -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'])
     ) {
index d64e501e9390dfcf1967b47cb7e7f453e2307a45..d957331a2f83038aa444374b2e58c6eb06053361 100644 (file)
@@ -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']) &&
index 327d06119f1ea734e7156cb2715f276f369b1ddc..a539ee000477f635020ea2ac2973726deac7a72d 100644 (file)
@@ -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) {