Affects Version/s: 7.0.X, 7.1.X, Master
- Start the latest master
- Create a new site
- Create a new structure "struct1" with a Date field embedded into another one, e.g.: add a Text field named "T1" and inside that a Date field named "D1"
- Click "Manage Templates" on struct1 and "Add" to open the template editor
- Click "D1" on the left side, and a code like this will be added to the editor:
- Save the template
- Go to Web Contents, create a new "struct1" web content, fill both fields
- Preview the web content
Expected: the date value of the web content article is shown correctly
actual: an error is shown instead of the web content:
7.1.x : Commit: ee3cc2d128e09e039854f643acc4d3963069dfc0
Master: Commit: 304c1ae6a8bd439f952ae662954dfef1c58848b0
The problem seems to be that the generated FTL code is wrong: "T1.D1_Data" is an invalid variable name in FTL. However, the variable names can contain special characters, when they are escaped with "\": "T1\.D1_Data"