CRM-16876 Ensure that foreign countires are also capitalised when hiding country...
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 26 Sep 2016 01:22:15 +0000 (11:22 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 26 Sep 2016 01:22:15 +0000 (11:22 +1000)
CRM/Utils/Address.php

index 581da23a0840af2094d2f029dd7dc9453cb192f5..f08e408204b15bacf91e41c23b0a4675f3fb505c 100644 (file)
@@ -104,6 +104,9 @@ class CRM_Utils_Address {
         if ($fields['country'] == CRM_Core_PseudoConstant::country($domainCountryId)) {
           $fields['country'] = NULL;
         }
+        else {
+          $fields['country'] = strtoupper($fields['country']);
+        }
       }
       else {
         $fields['country'] = strtoupper($fields['country']);