From: jitendrapurohit Date: Wed, 30 Nov 2016 12:04:59 +0000 (+0530) Subject: Fix if condition for country X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1ac900b2af01eb94ee16c434f4950a48b8652e6e;p=civicrm-core.git Fix if condition for country --- diff --git a/CRM/Utils/Address.php b/CRM/Utils/Address.php index 3f4a7ab36c..8b48e41ef1 100644 --- a/CRM/Utils/Address.php +++ b/CRM/Utils/Address.php @@ -359,7 +359,7 @@ class CRM_Utils_Address { $value = $params[$alternateName]; } } - if (is_numeric($value) && $name == 'state_province' || $name == 'country') { + if (is_numeric($value) && ($name == 'state_province' || $name == 'country')) { if ($name == 'state_province') { $addressFields[$name] = CRM_Core_PseudoConstant::stateProvinceAbbreviation($value); }