From: Coleman Watts Date: Fri, 22 Aug 2014 16:18:29 +0000 (+0100) Subject: Re-order country/state/county to make more sense with chainselect X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=863581d1dfa7930eae4e2ad77cd4faa402849a88;p=civicrm-core.git Re-order country/state/county to make more sense with chainselect --- 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(), ), ); }