svn commit: r648636 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r648636 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java

bibryam
Author: bibryam
Date: Wed Apr 16 02:22:33 2008
New Revision: 648636

URL: http://svn.apache.org/viewvc?rev=648636&view=rev
Log:
Copy productName and Descriotion when creating new configuration product.

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?rev=648636&r1=648635&r2=648636&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Wed Apr 16 02:22:33 2008
@@ -3235,10 +3235,15 @@
             }
             
             //create new product and associate it
+            GenericValue product = item.getProduct();
+            String productName = product.getString("productName");
+            String description = product.getString("description");
             Map serviceContext = new HashMap();
             GenericValue permUserLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", "system"));
             String internalName = item.getProductId() + "_" + configId;
             serviceContext.put("internalName", internalName);
+            serviceContext.put("productName", productName);
+            serviceContext.put("description", description);
             serviceContext.put("productTypeId", "AGGREGATED_CONF");
             serviceContext.put("configId", configId);
             serviceContext.put("userLogin", permUserLogin);