Skip to content

Commit c037e1c

Browse files
committed
Bug #60496: fix NL disabled after switching lookup method
1 parent fc23809 commit c037e1c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

assets/js/postcode-eu-autofill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267

268268
const addAddressAutocompleteNl = function (container, addressType)
269269
{
270-
if (settings.netherlandsMode !== 'postcodeOnly')
270+
if (typeof settings.enabledCountries.NL === 'undefined' || settings.netherlandsMode !== 'postcodeOnly')
271271
{
272272
return;
273273
}

src/PostcodeNl/AddressAutocomplete/Options.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,6 @@ public function show(): void
189189
$countryListItems = [];
190190
foreach ($this->getSupportedCountries() as $supportedCountry)
191191
{
192-
if ($supportedCountry['iso3'] === 'NLD' && $this->netherlandsMode === static::NETHERLANDS_MODE_POSTCODE_ONLY)
193-
{
194-
continue;
195-
}
196-
197192
$checkbox = sprintf(
198193
'<input type="checkbox" name="%s" %s/>',
199194
static::FORM_NAME_PREFIX . static::FORM_PER_COUNTRY_NAME . $supportedCountry['iso3'],

0 commit comments

Comments
 (0)