You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by bi...@apache.org on 2008/08/04 14:44:03 UTC

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

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);