"city" => "billing_city-{$billingLocationTypeID}",
"postal_code" => "billing_postal_code-{$billingLocationTypeID}",
"state_province" => "state_province-{$billingLocationTypeID}",
+ "state_province_name" => "state_province-{$billingLocationTypeID}",
"country" => "country-{$billingLocationTypeID}",
);
$value = $params[$alternateName];
}
}
- if (is_numeric($value) && ($name == 'state_province' || $name == 'country')) {
+ if (is_numeric($value) && ($name == 'state_province' || $name == 'state_province_name' || $name == 'country')) {
if ($name == 'state_province') {
$addressFields[$name] = CRM_Core_PseudoConstant::stateProvinceAbbreviation($value);
}
+ if ($name == 'state_province_name') {
+ $addressFields[$name] = CRM_Core_PseudoConstant::stateProvince($value);
+ }
if ($name == 'country') {
$addressFields[$name] = CRM_Core_PseudoConstant::countryIsoCode($value);
}