Also :),

I will do that


On 30/01/2019 19:55, Jacques Le Roux wrote:
Hi Nicolas,

Not in R17?


Le 30/01/2019 à 17:18, a écrit :
Author: nmalin
Date: Wed Jan 30 16:18:00 2019
New Revision: 1852532

Fixed: Disable widget verbose property on context doesn't works for rendering 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.


Modified: ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ URL: ============================================================================== --- ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ (original) +++ ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ Wed Jan 30 16:18:00 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));

Reply via email to