diff --git a/CHANGELOG.md b/CHANGELOG.md index 686913b..c8bca2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 3.0.4 - 2018-10-08 + +[Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.0.3...3.0.4) + +### Fixed + + - Fix broken content element attributes (Missing class and custom id). + ## 3.0.3 - 2018-09-18 [Full Changelog](https://github.com/netzmacht/contao-leaflet-maps/compare/3.0.2...3.0.3) diff --git a/src/Frontend/AbstractMapHybrid.php b/src/Frontend/AbstractMapHybrid.php index b31c29d..63e1083 100644 --- a/src/Frontend/AbstractMapHybrid.php +++ b/src/Frontend/AbstractMapHybrid.php @@ -119,6 +119,8 @@ abstract class AbstractMapHybrid extends AbstractHybrid */ protected function prepareTemplateData(array $data): array { + $data = parent::prepareTemplateData($data); + try { $template = $this->get('leaflet_template') ?: 'leaflet_map_js'; $mapId = $this->getIdentifier();