You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2015/04/11 12:56:57 UTC

svn commit: r1672856 - /ofbiz/trunk/applications/order/webapp/ordermgr/quote/quoteReportBody.fo.ftl

Author: deepak
Date: Sat Apr 11 10:56:56 2015
New Revision: 1672856

URL: http://svn.apache.org/r1672856
Log:
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>