Author: sichen
Date: Wed May 23 11:49:03 2007
New Revision: 541026
URL:
http://svn.apache.org/viewvc?view=rev&rev=541026Log:
Fix bug where edit credit card page crashes when address has no postalCode (non-US, for instance)
Modified:
ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/editcreditcard.ftl
Modified: ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/editcreditcard.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/editcreditcard.ftl?view=diff&rev=541026&r1=541025&r2=541026==============================================================================
--- ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/editcreditcard.ftl (original)
+++ ofbiz/branches/release4.0/applications/party/webapp/partymgr/party/editcreditcard.ftl Wed May 23 11:49:03 2007
@@ -226,7 +226,7 @@
<#if postalAddress.attnName?exists><p><b>${uiLabelMap.PartyAddrAttnName}:</b> ${postalAddress.attnName}</p></#if>
<#if postalAddress.address1?exists><p>${postalAddress.address1}</p></#if>
<#if postalAddress.address2?exists><p>${postalAddress.address2}</p></#if>
- <p>${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId}</#if> ${postalAddress.postalCode}</p>
+ <p>${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId}</#if> ${postalAddress.postalCode?if_exists}</p>
<#if postalAddress.countryGeoId?exists><p>${postalAddress.countryGeoId}</p></#if>
<p>(${uiLabelMap.CommonUpdated}: ${(partyContactMech.fromDate.toString())?if_exists})</p>
<#if partyContactMech.thruDate?exists><p><b>${uiLabelMap.CommonDelete}: ${partyContactMech.thruDate.toString()}</b></p></#if>