X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FAddress.php;h=c01662e604278fe6c90ff30a662b5d60f17e605f;hb=38a5b128ab985efbe150bb559ad37872d7fc2969;hp=84ec2f8162ebc5b3092f3fd8e0332950a4c51f94;hpb=2bbde18cfed6f40e7c1f8c2cb9eb974551bdd807;p=civicrm-core.git diff --git a/CRM/Utils/Address.php b/CRM/Utils/Address.php index 84ec2f8162..c01662e604 100644 --- a/CRM/Utils/Address.php +++ b/CRM/Utils/Address.php @@ -331,7 +331,6 @@ class CRM_Utils_Address { "city" => "billing_city-{$billingLocationTypeID}", "postal_code" => "billing_postal_code-{$billingLocationTypeID}", "state_province" => "state_province-{$billingLocationTypeID}", - "state_province_name" => "state_province-{$billingLocationTypeID}", "country" => "country-{$billingLocationTypeID}", ); @@ -349,12 +348,10 @@ class CRM_Utils_Address { $value = $params[$alternateName]; } } - if (is_numeric($value) && ($name == 'state_province' || $name == 'state_province_name' || $name == 'country')) { + if (is_numeric($value) && ($name == 'state_province' || $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); + $addressFields[$name . '_name'] = CRM_Core_PseudoConstant::stateProvince($value); } if ($name == 'country') { $addressFields[$name] = CRM_Core_PseudoConstant::countryIsoCode($value);