geolocation: ignore field hints when assembling address parts (#75613) #173
|
@ -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 + ' ';
|
||||
|
|
Loading…
Reference in New Issue