bobosch / ods_osm

TYPO3 Extension OpenStreetMap
10 stars 22 forks source link

Entire address is written into field "address" on save #180

Closed sypets closed 6 months ago

sypets commented 6 months ago

When saving an existing address entry which only contains the street in the field "address" and also has other fields country, zip, city etc. filled out, the field address is filled with redundant data.

The behaviour described below happens only if ods_osm is installed, not if only tt_address is used.

According to the tt_address documentation it seems to be correct that address contains only the street: https://docs.typo3.org/p/friendsoftypo3/tt-address/8.0/en-us/Introduction/Index.html

image

Reproduce

Adress is entered:

address: Bremer Straße 7
city: Vechta
zip: 49377
region: Niedersachsen
country: Deutschland

image

If I enter it this way in a system with only tt_address and save, the field "address" stays the same: "Bremer Straße 7".

But if I enter it in a system with ods_osm, this happens:

image

address now contains: "Bremer Straße 7, 49377 Vechta, Deutschland" and we have redundant data, which also results in redundant data in the Frontend:

image

Versions

albig commented 6 months ago

Thank you for the detailed bug report. It's indeed a bug. I'll provide a fix today.

sypets commented 6 months ago

Thank you for the detailed bug report. It's indeed a bug. I'll provide a fix today.

Awesome, thanks. :+1: I'll check it out on Monday.