Skip to content
Browse files
Fixed: Disable widget verbose property on context doesn't works for r…
…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: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
nmalin committed Jan 30, 2019
1 parent 34cfddc commit af382be97734f87fed22d028d5d0cd6a299448b1
Showing with 1 addition and 2 deletions.
  1. +1 −2 framework/widget/src/main/java/org/apache/ofbiz/widget/model/
@@ -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));

0 comments on commit af382be

Please sign in to comment.