svn commit: r956226 - /ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetPaymentMethods.groovy

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

svn commit: r956226 - /ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetPaymentMethods.groovy

jleroux@apache.org
Author: jleroux
Date: Sat Jun 19 13:49:49 2010
New Revision: 956226

URL: http://svn.apache.org/viewvc?rev=956226&view=rev
Log:
I like the Groovy's Elvis operator

Modified:
    ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetPaymentMethods.groovy

Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetPaymentMethods.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetPaymentMethods.groovy?rev=956226&r1=956225&r2=956226&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetPaymentMethods.groovy (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/GetPaymentMethods.groovy Sat Jun 19 13:49:49 2010
@@ -19,7 +19,7 @@
 
 import org.ofbiz.accounting.payment.PaymentWorker;
 
-partyId = parameters.partyId ? parameters.partyId : userLogin.partyId;
+partyId = parameters.partyId ?: userLogin.partyId;
 showOld = "true".equals(parameters.SHOW_OLD);
 context.showOld = showOld;
 context.partyId = partyId;