geolocation: also get city from locality/municipality keys (#52101)
This commit is contained in:
parent
dd464224d3
commit
f577aa1d47
|
@ -51,7 +51,7 @@ function geoloc_prefill(element_type, element_value)
|
|||
}
|
||||
geoloc_prefill('number-and-street', number_and_street);
|
||||
geoloc_prefill('postcode', data.address.postcode);
|
||||
geoloc_prefill('city', data.address.village || data.address.town || data.address.city || data.address.county);
|
||||
geoloc_prefill('city', data.address.village || data.address.town || data.address.city || data.address.locality || data.address.municipality || data.address.county);
|
||||
geoloc_prefill('country', data.address.country);
|
||||
$(document).trigger('wcs:set-last-auto-save');
|
||||
set_sync_callback()
|
||||
|
|
Loading…
Reference in New Issue