You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2018/09/08 11:44:45 UTC

svn commit: r1840354 - /ofbiz/ofbiz-plugins/trunk/ecommerce/template/data/Tree.ftl

Author: deepak
Date: Sat Sep  8 11:44:45 2018
New Revision: 1840354

URL: http://svn.apache.org/viewvc?rev=1840354&view=rev
Log:
Fixed: Use assign tag instead of local in Tree.ftl,as its causing data load error. Tree.ftl used in DemoTree.xml to demonstrate the entity-engine-transform-xml feature.
Thanks Swapnil Mane for reporting the issue

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/data/Tree.ftl

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/data/Tree.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/data/Tree.ftl?rev=1840354&r1=1840353&r2=1840354&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/data/Tree.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/data/Tree.ftl Sat Sep  8 11:44:45 2018
@@ -27,7 +27,7 @@ under the License.
 </#macro>
 
 <#macro topic>
-  <#local contentId="ECMT" + .node.@id[0]/>
+  <#assign contentId="ECMT" + .node.@id[0]/>
   <#recurse .node>
 </#macro>
 
@@ -38,7 +38,7 @@ under the License.
     <#local contentIdTo="ECMC" + .node.@id[0]/>
     <#local assocType="PUBLISH_LINK"/>
   </#if>
-  <#assign nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
+  <#local nowStamp=Static["org.apache.ofbiz.base.util.UtilDateTime"].nowTimestamp()/>
   <ContentAssoc contentIdTo="${contentIdTo}" contentId="${contentId}" contentAssocTypeId="${assocType}"
       fromDate="${nowStamp?string("yyyy-MM-dd HH:mm:ss")}"/>
 </#macro>