From: Leon T. <le...@gr...> - 2007-03-13 23:46:05
|
Author: leon Date: 2007-03-13 15:46:03 -0800 (Tue, 13 Mar 2007) New Revision: 834 Modified: versions/0.9/trunk/webapp/financials/accounts/PrintChecks.fo.ftl Log: Added condition to prevent crash if check party has no addresses. Modified: versions/0.9/trunk/webapp/financials/accounts/PrintChecks.fo.ftl =================================================================== --- versions/0.9/trunk/webapp/financials/accounts/PrintChecks.fo.ftl 2007-03-13 23:44:50 UTC (rev 833) +++ versions/0.9/trunk/webapp/financials/accounts/PrintChecks.fo.ftl 2007-03-13 23:46:03 UTC (rev 834) @@ -94,7 +94,7 @@ <fo:table-row height="2.0cm"> <fo:table-cell padding-before="0.5cm" number-columns-spanned="2"> <fo:block margin-left="3.0cm"> - <#assign address = billingAddresses.get(payment.paymentId)> + <#assign address = billingAddresses.get(payment.paymentId)?if_exists> <#if address?has_content> <fo:block>${toPartyNameResult.fullName?default(address.toName)?default("Occupant")}</fo:block> <#if address.attnName?exists> |