Author: deepak
Date: Sat Apr 11 10:56:56 2015
New Revision: 1672856
URL:
http://svn.apache.org/r1672856Log:
OFBIZ-6077: Added check on quote report body fo ftl to avoid NPE.
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportBody.fo.ftl
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportBody.fo.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportBody.fo.ftl?rev=1672856&r1=1672855&r2=1672856&view=diff==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportBody.fo.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportBody.fo.ftl Sat Apr 11 10:56:56 2015
@@ -40,6 +40,7 @@ under the License.
<fo:table-body>
<#assign rowColor = "white">
<#assign totalQuoteAmount = 0.0>
+ <#if quoteItems?has_content>
<#list quoteItems as quoteItem>
<#if quoteItem.productId??>
<#assign product = quoteItem.getRelatedOne("Product", false)>
@@ -105,6 +106,7 @@ under the License.
<#assign rowColor = "white">
</#if>
</#list>
+ </#if>
</fo:table-body>
</fo:table>