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

bibryam
Author: bibryam
Date: Wed Jan  2 15:54:53 2008
New Revision: 608285

URL: http://svn.apache.org/viewvc?rev=608285&view=rev
Log:
Fixed a bug, that cause error during order creation from existing order with more than one ship groups.

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=608285&r1=608284&r2=608285&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 Jan  2 15:54:53 2008
@@ -1894,7 +1894,7 @@
             return null;
         }
 
-        if (shipInfo.size() == 0) {
+        if (shipInfo.size() == idx) {
             CartShipInfo csi = new CartShipInfo();
             csi.orderTypeId = getOrderType();
             shipInfo.add(csi);