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

bibryam
Author: bibryam
Date: Mon Apr  6 08:12:03 2009
New Revision: 762248

URL: http://svn.apache.org/viewvc?rev=762248&view=rev
Log:
Fixed a bug reported by CJay Harton in user ML, that caused new product creation for the same aggregated product configuration.

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=762248&r1=762247&r2=762248&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 Apr  6 08:12:03 2009
@@ -3265,7 +3265,7 @@
         try {
             //first search for existing productId
             newProductId = ProductWorker.getAggregatedInstanceId(getDelegator(), item.getProductId(), configId);
-            if (configId.equals(newProductId)) {
+            if (newProductId != null) {
                 return newProductId;
             }