Author: nmalin
Date: Thu Jan 31 07:51:20 2019
New Revision: 1852575
URL:
http://svn.apache.org/viewvc?rev=1852575&view=revLog:
Fixed: Disable widget verbose property on context doesn't works for rendering ftl template
Backport from trunk
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, it was ignored and widget verbosity was present for ftl rendering.
Modified:
ofbiz/ofbiz-framework/branches/release17.12/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java
Modified: ofbiz/ofbiz-framework/branches/release17.12/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java?rev=1852575&r1=1852574&r2=1852575&view=diff==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java (original)
+++ ofbiz/ofbiz-framework/branches/release17.12/framework/widget/src/main/java/org/apache/ofbiz/widget/model/HtmlWidget.java Thu Jan 31 07:51:20 2019
@@ -149,8 +149,7 @@ public class HtmlWidget extends ModelScr
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));
}