svn commit: r1742097 - /ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1742097 - /ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml

jleroux@apache.org
Author: jleroux
Date: Tue May  3 11:29:03 2016
New Revision: 1742097

URL: http://svn.apache.org/viewvc?rev=1742097&view=rev
Log:
A better fix, thanks to Deepak. I just used "null" instead of "void" which was weird to me (maybe a legacy from BSh)

Modified:
    ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml

Modified: ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml?rev=1742097&r1=1742096&r2=1742097&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/AccountingMenus.xml Tue May  3 11:29:03 2016
@@ -419,7 +419,7 @@ under the License.
     <menu name="PaymentSubTabBar" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml"
           menu-container-style="button-bar button-style-2">
         <actions>
-            <set field="isDisbursement" value="${bsh:if(payment!=void)return org.ofbiz.accounting.util.UtilAccounting.isDisbursement(payment)}"/>
+            <set field="isDisbursement" value="${groovy:if(context.payment != null) return org.ofbiz.accounting.util.UtilAccounting.isDisbursement(context.payment)}"/>
         </actions>
         <menu-item name="createNew" title="${uiLabelMap.CommonCreateNew}" widget-style="buttontext create" >
             <condition>