-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.X, 7.1.X, 7.2.X, Master
-
Fix Version/s: 7.3.0 CE GA1, 7.3.10 DXP GA1, Master
-
Component/s: ~[Archived] WCM
-
Labels:None
-
Fix Priority:3
-
Git Pull Request:
Reproduction steps:
- Start latest master bundle
- Create a structure named "struct1"
- Add a Separator to the structure
- Add a Geolocation field embedded into the Separator
- Add a template to "struct1"
- Click on the Geolocation field on the left, and its pattern will be inserted into the template
- Save it and create a web content from "struct1"
- Select a location for the GeoLocation field, save the content
- Preview the content (eye icon in the "Default Template" section)
Actual result: the map is not shown, you can only see an empty <div> element, and the following javascript error:
Uncaught Error: Map container not found. at e._initContainer (leaflet.js:5) at e.initialize (leaflet.js:5) at new e (leaflet.js:5) at Object.t.map (leaflet.js:5) at MapOpenStreetMap._createMap (? ...
Expected: the map with the selected location should be shown
This is a part of the generated FTL template:
<@liferay_map["map-display"] geolocation=true latitude=latitude longitude=longitude name="Text4vud.Geolocation77ue${randomizer.nextInt()}" />
When the name attribute doesn't contain "." character, it should look like this:
<@liferay_map["map-display"] geolocation=true latitude=latitude longitude=longitude name="Text4vud_Geolocation77ue${randomizer.nextInt()}" />
- Discovered while testing
-
LPS-103229 Liferay template-editor generates invalid Freemarker code for embedded repeatable fields
- Closed