Author: sichen
Date: Thu Mar 15 15:52:17 2007
New Revision: 518800
URL: http://svn.apache.org/viewvc?view=rev&rev=518800
Log:
fix bad renderProductContentWrapper.getProductContentAsText in ordermgr show
cart items. Thanks to Rashko Rejmer. OFBIZ-820
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl?view=diff&rev=518800&r1=518799&r2=518800
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl
(original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl
Thu Mar 15 15:52:17 2007
@@ -201,7 +201,7 @@
<div
class="tableheadtext">${uiLabelMap.OrderChooseFollowingForGift}:</div>
<#list cartLine.getAlternativeOptionProductIds() as
alternativeOptionProductId>
<#assign alternativeOptionProduct =
delegator.findByPrimaryKeyCache("Product",
Static["org.ofbiz.base.util.UtilMisc"].toMap("productId",
alternativeOptionProductId))>
- <#assign alternativeOptionName =
Static["org.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(alternativeOptionProduct,
"PRODUCT_NAME", locale)?if_exists>
+ <#assign alternativeOptionName =
Static["org.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(alternativeOptionProduct,
"PRODUCT_NAME", locale, dispatcher)?if_exists>
<div class="tabletext"><a
href="<@ofbizUrl>setDesiredAlternateGwpProductId?alternateGwpProductId=${alternativeOptionProductId}&alternateGwpLine=${cartLineIndex}</@ofbizUrl>"
class="buttontext">Select:
${alternativeOptionName?default(alternativeOptionProductId)}</a></div>
</#list>
</#if>