evoWeb / store_finder

Store finder extension for TYPO3
GNU General Public License v2.0
2 stars 9 forks source link

Zoom setting not int #25

Closed wechselstroom closed 4 years ago

wechselstroom commented 4 years ago

In version 4.1.1 typo3 throws the following exception when using the show plugin (with corrected code from previous issue): Argument 1 passed to Evoweb\StoreFinder\Domain\Model\Location::setZoom() must be of the type integer, string given, called in /app/web/public/typo3conf/ext/store_finder/Classes/Controller/MapController.php on line 299

fix: change line 299 in MapController.php to: $center->setZoom($this->settings['zoom'] ? (int) $this->settings['zoom'] : 15);

garbast commented 4 years ago

Fixed in 249b3d5