From e22e10f59c4996f5ef3bc9a912033dc7d9f094ae Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 26 Sep 2016 11:22:15 +1000 Subject: [PATCH] CRM-16876 Ensure that foreign countires are also capitalised when hiding country for local mailing --- CRM/Utils/Address.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Utils/Address.php b/CRM/Utils/Address.php index 581da23a08..f08e408204 100644 --- a/CRM/Utils/Address.php +++ b/CRM/Utils/Address.php @@ -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']); -- 2.25.1