svn commit: r682365 - /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: r682365 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java

bibryam
Author: bibryam
Date: Mon Aug  4 05:44:03 2008
New Revision: 682365

URL: http://svn.apache.org/viewvc?rev=682365&view=rev
Log:
Copy also requirementMethodEnumId from AGGREGATED to AGGREGATED_CONF products.

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=682365&r1=682364&r2=682365&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 Mon Aug  4 05:44:03 2008
@@ -3242,6 +3242,9 @@
             serviceContext.put("description", description);
             serviceContext.put("productTypeId", "AGGREGATED_CONF");
             serviceContext.put("configId", configId);
+            if (UtilValidate.isNotEmpty(product.getString("requirementMethodEnumId"))) {
+                serviceContext.put("requirementMethodEnumId", product.getString("requirementMethodEnumId"));
+            }
             serviceContext.put("userLogin", permUserLogin);
             
             Map result = dispatcher.runSync("createProduct", serviceContext);