Author: deepak
Date: Sat Apr 11 12:49:04 2015
New Revision: 1672873

URL: http://svn.apache.org/r1672873
Log:
OFBIZ-6057: Fixed freemarker stack trace on view quote item info, instead of 
assigning null in freemarker corrected the condition and removed the null value 
assignment.

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl

Modified: 
ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl?rev=1672873&r1=1672872&r2=1672873&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl 
(original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl 
Sat Apr 11 12:49:04 2015
@@ -50,11 +50,6 @@ under the License.
             <#assign totalQuoteAmount = 0.0>
             <#assign alt_row = false/>
             <#list quoteItems as quoteItem>
-                <#if quoteItem.productId??>
-                    <#assign product = quoteItem.getRelatedOne("Product", 
false)>
-                <#else>
-                    <#assign product = null> <#-- don't drag it along to the 
next iteration -->
-                </#if>
                 <#assign selectedAmount = quoteItem.selectedAmount?default(1)>
                 <#if selectedAmount == 0>
                     <#assign selectedAmount = 1/>
@@ -81,7 +76,10 @@ under the License.
                     </td>
                     <td valign="top">
                         <div>
-                            ${(product.internalName)!}&nbsp;
+                            <#if quoteItem.productId??>
+                              <#assign product = 
quoteItem.getRelatedOne("Product", false)/>
+                              ${(product.internalName)!}&nbsp;
+                            </#if>
                             <#if showQuoteManagementLinks??>
                                 <a 
href="/catalog/control/EditProduct?productId=${quoteItem.productId!}" 
class="buttontext">
                                   <#if quoteItem.productId??>


Reply via email to