Author: jacopoc
Date: Mon Mar 19 05:38:58 2012
New Revision: 1302274
URL:
http://svn.apache.org/viewvc?rev=1302274&view=revLog:
Fixed issue reported in OFBIZ-4731: the ${bsh: syntaxt when used in value fields doesn't seem to work properly after the recent refactoring to the ScriptUtil and related mechanisms. Fixed by switching to ${groovy: syntax.
Even if there are plans to migrate all the scripts to the ${groovy: syntax, we will have to fix the root cause of this, also because there are several other occurrencies of the older sytax in the system.
Modified:
ofbiz/trunk/applications/accounting/widget/GlForms.xml
Modified: ofbiz/trunk/applications/accounting/widget/GlForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/GlForms.xml?rev=1302274&r1=1302273&r2=1302274&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/GlForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/GlForms.xml Mon Mar 19 05:38:58 2012
@@ -275,7 +275,7 @@ under the License.
</entity-condition>
</actions>
<row-actions>
- <set field="showPosition1" value="${bsh:String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=null&&prev.equals(glAccountId)));}" type="Boolean"/>
+ <set field="showPosition1" value="${groovy:String prev=(String)previousItem.get("glAccountId");return new Boolean(!(prev!=null&&prev.equals(glAccountId)));}" type="Boolean"/>
</row-actions>
<field name="glAccountId" position="1" use-when="showPosition1"><display/></field>
<field name="glAccountDescription" title="${uiLabelMap.CommonDescription}" position="1" use-when="showPosition1">