[
https://issues.apache.org/jira/browse/OFBIZ-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luke Prentice updated OFBIZ-1895:
---------------------------------
Issue Type: Bug (was: Improvement)
changed from enhancement to bug.
SVN version of file: 679658
> handle empty city in ordercontactinfo.ftl
> -----------------------------------------
>
> Key: OFBIZ-1895
> URL: https://issues.apache.org/jira/browse/OFBIZ-1895
> Project: OFBiz
> Issue Type: Bug
> Components: order
> Affects Versions: SVN trunk
> Environment: ubuntu 8.10, java 1.6, postgres 8.2
> Reporter: Luke Prentice
> Priority: Minor
> Original Estimate: 0.17h
> Remaining Estimate: 0.17h
>
> this expression in
> applications/order/webapp/ordermgr/order/ordercontactinfo.ftl (line 83) fails
> if city is empty:
> ${postalAddress.city}
> so changed it to ${postalAddress.city?if_exists} and it's ok. simply add
> ?if_exists
> context:
> <#if postalAddress.toName?has_content><span
> class="label">${uiLabelMap.CommonTo}</span> ${postalAddress.toName}<br/></#if>
> <#if postalAddress.attnName?has_content><span
> class="label">${uiLabelMap.CommonAttn}</span>
> ${postalAddress.attnName}<br/></#if>
> ${postalAddress.address1}<br/>
> <#if
> postalAddress.address2?has_content>${postalAddress.address2}<br/></#if>
> ${postalAddress.city?if_exists}<#if
> postalAddress.stateProvinceGeoId?has_content>,
> ${postalAddress.stateProvinceGeoId} </#if>
> ${postalAddress.postalCode?if_exists}<br/>
> ${postalAddress.countryGeoId?if_exists}<br/>
> <#if !postalAddress.countryGeoId?exists ||
> postalAddress.countryGeoId == "USA">
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.