bobosch / ods_osm

TYPO3 Extension OpenStreetMap
10 stars 22 forks source link

Marker icon for custom tables broken when using "IMAGE" #149

Closed hannesbochmann closed 11 months ago

hannesbochmann commented 11 months ago

When using something like

plugin.tx_odsosm_pi1.icon {
    tt_address = IMAGE
    tt_address {
        file = EXT:...
    }
}

I get a PHP warning:

PHP Warning: Trying to access array offset on value of type null in /var/www/html/vendor/bobosch/ods-osm/Classes/Controller/PluginController.php line 543'

Even if the warnings would be tolerated, this would end in the follwoing error:

Call to a member function getPublicUrl() on null /var/www/html/vendor/bobosch/ods-osm/Classes/Provider/Leaflet.php' line: 294

The problem is the usage of $GLOBALS['TSFE']->lastImageInfo which got removed.