Bugfix
Detail
#27940
HTML templates: Foreach attributes cannot access variables that are not defined in the model
With an "HTML template" form module, you can define other variables in addition to the model variables to which the template has access, e.g. via script expressions. If you try to access these variables in a Foreach template tag, you receive the error that the variable is not defined.
Analysis
When the template is analyzed, only those variables are actually calculated that the template can access. However, the analysis of the template is incorrect, so that the variable access from Foreach template attributes is not found.
Test
- test.com.top_logic.html.template.TestHTMLTemplates.testForeachAttribute()