Author: bibryam
Date: Sun Jul 13 03:14:55 2008
New Revision: 676294
URL:
http://svn.apache.org/viewvc?rev=676294&view=revLog:
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;