geolocation: ignore field hints when assembling address parts (#75613) #173

Merged
fpeters merged 1 commits from wip/75613-ignore-hint-city-value into main 2023-03-21 07:54:58 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ $(function() {
$(['number-and-street', 'house', 'road', 'postcode', 'city', 'country']).each(function(idx, elem) {
var part = $('div[data-geolocation="' + elem + '"]').find('input, textarea').val();
if (! part) {
part = $('div[data-geolocation="' + elem + '"]').find('select option:selected').text()
part = $('div[data-geolocation="' + elem + '"]').find('select option:selected:not([data-hint))').text()
}
if (part) {
address += part + ' ';