From 1ac900b2af01eb94ee16c434f4950a48b8652e6e Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 30 Nov 2016 17:34:59 +0530 Subject: [PATCH] Fix if condition for country --- CRM/Utils/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.25.1