Fix if condition for country
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 30 Nov 2016 12:04:59 +0000 (17:34 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 30 Nov 2016 12:04:59 +0000 (17:34 +0530)
CRM/Utils/Address.php

index 3f4a7ab36cb74c3f649d8a54bacac44acb5aca1f..8b48e41ef13f01c8ce0dc4b84f420dec0c889d98 100644 (file)
@@ -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);
         }