From e76ce93e873e401a75168b5494b2ef850f37961f Mon Sep 17 00:00:00 2001 From: pratikshad Date: Wed, 11 Feb 2015 15:42:38 +1000 Subject: [PATCH] CRM-15924 Fixed issue to allow more criteria rows than template does in report ---------------------------------------- * CRM-15924: Report form allows more criteria rows than template does https://issues.civicrm.org/jira/browse/CRM-15924 --- CRM/Report/Form.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 9404468a65..877e3b2f8f 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -815,8 +815,9 @@ class CRM_Report_Form extends CRM_Core_Form { } if ( - array_key_exists('order_bys', $table) && - is_array($table['order_bys']) + empty($this->_formValues['order_bys']) && + (array_key_exists('order_bys', $table) && + is_array($table['order_bys'])) ) { if (!array_key_exists('order_bys', $this->_defaults)) { $this->_defaults['order_bys'] = array(); -- 2.25.1