Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5.2
-
Fix Version/s: 4.7.18
-
Component/s: Core CiviCRM
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
When
{contact.state_province_name}is included as field in a Mailing Label format, the state/province abbreviation is shown rather than the full state/province name.
See the following forum thread
http://forum.civicrm.org/index.php/topic,33496.msg146762.html
In CRM/Contact/BAO/Query.php, line 5533 is as follows:
$dao->$value['pseudoField'] = $dao->$key = CRM_Core_PseudoConstant::stateProvinceAbbreviation($val);
If this is changed to the following, then the correct state/province name is correctly shown:
$dao->$value['pseudoField'] = $dao->$key = CRM_Core_PseudoConstant::stateProvince($val);