From 863581d1dfa7930eae4e2ad77cd4faa402849a88 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 22 Aug 2014 17:18:29 +0100 Subject: [PATCH] Re-order country/state/county to make more sense with chainselect --- CRM/Report/Form.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index e49e9da272..00e2a54024 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -3483,18 +3483,18 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a array('title' => ts('Postal Code Suffix'), 'default' => CRM_Utils_Array::value('postal_code_suffix', $defaults, FALSE), ), - 'county_id' => - array('title' => ts('County'), - 'default' => CRM_Utils_Array::value('county_id', $defaults, FALSE), - ), + 'country_id' => + array('title' => ts('Country'), + 'default' => CRM_Utils_Array::value('country_id', $defaults, FALSE), + ), 'state_province_id' => array('title' => ts('State/Province'), 'default' => CRM_Utils_Array::value('state_province_id', $defaults, FALSE), ), - 'country_id' => - array('title' => ts('Country'), - 'default' => CRM_Utils_Array::value('country_id', $defaults, FALSE), - ), + 'county_id' => + array('title' => ts('County'), + 'default' => CRM_Utils_Array::value('county_id', $defaults, FALSE), + ), ), 'grouping' => 'location-fields', ), @@ -3518,32 +3518,32 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a 'operator' => 'like', 'name' => 'city', ), - 'county_id' => array( - 'name' => 'county_id', - 'title' => ts('County'), + 'country_id' => array( + 'name' => 'country_id', + 'title' => ts('Country'), 'type' => CRM_Utils_Type::T_INT, 'operatorType' => - CRM_Report_Form::OP_MULTISELECT, + CRM_Report_Form::OP_MULTISELECT, 'options' => - CRM_Core_PseudoConstant::county(), + CRM_Core_PseudoConstant::country(), ), 'state_province_id' => array( 'name' => 'state_province_id', 'title' => ts('State/Province'), 'type' => CRM_Utils_Type::T_INT, 'operatorType' => - CRM_Report_Form::OP_MULTISELECT, + CRM_Report_Form::OP_MULTISELECT, 'options' => - CRM_Core_PseudoConstant::stateProvince(), + CRM_Core_PseudoConstant::stateProvince(), ), - 'country_id' => array( - 'name' => 'country_id', - 'title' => ts('Country'), + 'county_id' => array( + 'name' => 'county_id', + 'title' => ts('County'), 'type' => CRM_Utils_Type::T_INT, 'operatorType' => CRM_Report_Form::OP_MULTISELECT, 'options' => - CRM_Core_PseudoConstant::country(), + CRM_Core_PseudoConstant::county(), ), ); } -- 2.25.1