Skip to content

Commit

Permalink
Fixed: Disable widget verbose property on context doesn't works for r…
Browse files Browse the repository at this point in the history
…endering ftl template

When OFBiz render a platform specific with a ftl template file, the widget verbosity throw function ModelWidget.widgetBoundary() was called with parameters as context. However this function control if a parameters is already present, so if you set a context.widgetVerbose = false, is was ignored and widget verbosity was present for ftl rendering.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1852532 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
nmalin committed Jan 30, 2019
1 parent 34cfddc commit af382be
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ public static void renderHtmlTemplate(Appendable writer, FlexibleStringExpander

if (location.endsWith(".ftl")) {
try {
Map<String, ? extends Object> parameters = UtilGenerics.checkMap(context.get("parameters"));
boolean insertWidgetBoundaryComments = ModelWidget.widgetBoundaryCommentsEnabled(parameters);
boolean insertWidgetBoundaryComments = ModelWidget.widgetBoundaryCommentsEnabled(context);
if (insertWidgetBoundaryComments) {
writer.append(HtmlWidgetRenderer.formatBoundaryComment("Begin", "Template", location));
}
Expand Down

0 comments on commit af382be

Please sign in to comment.