misc: fix address parts fields prefill (#75938)
gitea/wcs/pipeline/head This commit looks good Details

This commit is contained in:
Serghei Mihai 2023-03-28 16:12:40 +02:00
parent 7547925c5c
commit d12bd6ed9b
1 changed files with 6 additions and 6 deletions

View File

@ -82,12 +82,12 @@ function init_sync_from_template_address() {
} else {
number_and_street = road;
}
geoloc_prefill('number-and-street', number_and_street, widget_name);
geoloc_prefill('house', house_number, widget_name);
geoloc_prefill('road', road, widget_name);
geoloc_prefill('city', city, widget_name);
geoloc_prefill('postcode', postcode, widget_name);
geoloc_prefill('country', address.country, widget_name);
geoloc_prefill('number-and-street', [number_and_street], widget_name);
geoloc_prefill('house', [house_number], widget_name);
geoloc_prefill('road', [road], widget_name);
geoloc_prefill('city', [city], widget_name);
geoloc_prefill('postcode', [postcode], widget_name);
geoloc_prefill('country', [address.country], widget_name);
}
});