You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2008/04/07 13:01:01 UTC

svn commit: r645458 - /ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/product.bsh

Author: jleroux
Date: Mon Apr  7 04:01:00 2008
New Revision: 645458

URL: http://svn.apache.org/viewvc?rev=645458&view=rev
Log:
Applied fix from trunk for revision: 645457 

Modified:
    ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/product.bsh

Modified: ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/product.bsh
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/product.bsh?rev=645458&r1=645457&r2=645458&view=diff
==============================================================================
--- ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/product.bsh (original)
+++ ofbiz/branches/release4.0/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/product.bsh Mon Apr  7 04:01:00 2008
@@ -25,6 +25,7 @@
 import org.ofbiz.product.catalog.*;
 import org.ofbiz.product.category.*;
 import org.ofbiz.product.product.ProductWorker;
+import org.ofbiz.product.product.ProductContentWrapper;
 
 dispatcher = request.getAttribute("dispatcher");
 delegator = request.getAttribute("delegator");
@@ -77,8 +78,10 @@
     
     if (product != null) {
         context.put("product", product);  
-        context.put("title", product.getString("productName"));
-        context.put("metaDescription", product.getString("productName"));
+        ProductContentWrapper contentWrapper = new ProductContentWrapper(product, request);
+        context.put("title", contentWrapper.get("PRODUCT_NAME"));        
+        context.put("metaDescription", contentWrapper.get("DESCRIPTION"));
+
         keywords = new ArrayList();
         keywords.add(product.getString("productName"));
         keywords.add(catalogName);