svn commit: r676294 - /ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/payment/PrintChecks.groovy

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

svn commit: r676294 - /ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/payment/PrintChecks.groovy

bibryam
Author: bibryam
Date: Sun Jul 13 03:14:55 2008
New Revision: 676294

URL: http://svn.apache.org/viewvc?rev=676294&view=rev
Log:
Fix a trivial groovy bug.

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/payment/PrintChecks.groovy

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/payment/PrintChecks.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/payment/PrintChecks.groovy?rev=676294&r1=676293&r2=676294&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/payment/PrintChecks.groovy (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/WEB-INF/actions/payment/PrintChecks.groovy Sun Jul 13 03:14:55 2008
@@ -52,8 +52,9 @@
 selected = UtilHttp.parseMultiFormData(parameters);
 selected.each { row ->
     payment = delegator.findByPrimaryKey("Payment", [paymentId : row.paymentId]);
-    if (!payment) continue;
-    payments.add(payment);
+    if (payment) {
+        payments.add(payment);
+    }
 }
 context.payments = payments;