From 242aa104f3210309aed4fa7a3a1df5079fe8fb5e Mon Sep 17 00:00:00 2001 From: Bojan Zivanovic Date: Fri, 3 Mar 2023 18:21:57 +0100 Subject: [PATCH] Make the region field required in Turkey. Originally seen in https://github.com/google/libaddressinput/issues/211. In general, if a country has a predefined list of regions it doesn't feel risky to require one to be selected. --- src/AddressFormat/AddressFormatRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddressFormat/AddressFormatRepository.php b/src/AddressFormat/AddressFormatRepository.php index 610934d6..0fe9cf80 100644 --- a/src/AddressFormat/AddressFormatRepository.php +++ b/src/AddressFormat/AddressFormatRepository.php @@ -1379,7 +1379,7 @@ protected function getDefinitions(): array 'TR' => [ 'format' => "%givenName %familyName\n%organization\n%addressLine1\n%addressLine2\n%postalCode %locality/%administrativeArea", 'required_fields' => [ - 'addressLine1', 'locality', 'postalCode', + 'addressLine1', 'locality', 'administrativeArea', 'postalCode', ], 'locality_type' => 'district', 'postal_code_pattern' => '\d{5}',