Improved: Replace #assign with #local in all the ftl macros

(OFBIZ-10516)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1837830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Deepak Dixit
2018-08-10 18:49:03 +00:00
parent 5f8f3bfa65
commit 2fe25b3d79
10 changed files with 29 additions and 29 deletions
@@ -73,9 +73,9 @@ under the License.
</#if>
<#macro displayrecords records>
<#assign lastRecordName = null>
<#local lastRecordName = null>
<#list records as record>
<#assign modelRecord = record.getModelRecord()>
<#local modelRecord = record.getModelRecord()>
<#-- if record is different than the last displayed, make a new table and header row -->
<#if !(modelRecord.name == lastRecordName)>
<#if lastRecordName??>
@@ -101,7 +101,7 @@ under the License.
<tr>
<#list modelRecord.fields as modelField>
<#assign value = record.get(modelField.name)>
<#local value = record.get(modelField.name)>
<#if value?has_content>
<td>${value}</td>
<#else>