mhirdes / go_maps_ext

Google Maps Extension for TYPO3
MIT License
21 stars 31 forks source link

Map not showing because of address with uid=0 #81

Closed webian closed 3 years ago

webian commented 3 years ago

Hello, I just found out that the map in the contact form doesn't display anymore because of a javascript error because, togheter with the correct address record, another record with uid=0 and pid=0 is get.

Fluid debugging Assign.html with: <f:debug>{addresses}</f:debug> I get:

TYPO3\CMS\Extbase\Persistence\Generic\LazyObjectStorageprototypeobject (2 items)
   000000005f4a48fb0000000035cef20c => Clickstorm\GoMapsExt\Domain\Model\Addressprototypepersistent entity (uid=1, pid=48)
   000000005f4a48f40000000035cef20c => Clickstorm\GoMapsExt\Domain\Model\Addressprototypepersistent entitysee above (uid=0, pid=0)

here, the first record with uid=1 is correct while the second one is empty and causes the javascript to fail because {address.imageWidth} is empty and imageWidth: , is javascript error "Uncaught SyntaxError: Unexpected token ','".

Actually I'm in TYPO3 10 LTS and usign go_maps_ext 4.0.1-dev.

Can you reproduce this?

webian commented 3 years ago

Nevermind, sorry. There was a record leftover in table tx_gomapsext_map_address_mm while the corresponding record in tx_gomapsext_domain_model_address was deleted.