[MGNLSTK-987] Templating functions that use AbstractSTKTemplateModel should also work with RenderingModelImpl Created: 07/Aug/12 Updated: 02/Aug/16 Resolved: 02/Aug/16 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | None |
| Affects Version/s: | 2.0.4 |
| Fix Version/s: | 2.0.x |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Robert Šiška | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: |
| Description |
|
Method resolveImageVariationName() from STKTemplatingFunctions causes Template error when called on info.magnolia.rendering.model.RenderingModelImpl instead of expected info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel. Overload or rewrite the method to support both classes. Error: Caused by: freemarker.template.TemplateModelException: Can not unwrap argument info.magnolia.rendering.model.RenderingModelImpl@583c72d7 to info.magnolia.module.templatingkit.templates.AbstractSTKTemplateModel at freemarker.ext.beans.SimpleMemberModel.unwrapArgument(SimpleMemberModel.java:132) at freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:120) at freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:98) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106) ... 161 more |
| Comments |
| Comment by Michael Mühlebach [ 02/Aug/16 ] |
|
Given the thousands of other issues we have open that are more highly requested, we won't be able to address this issue in the foreseeable future. Instead we will focus on issues with a higher impact, and more votes. |