Author: bibryam
Date: Mon Aug 4 05:44:03 2008
New Revision: 682365
URL:
http://svn.apache.org/viewvc?rev=682365&view=revLog:
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);