You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/05/11 19:33:32 UTC

svn commit: r773628 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

Author: jleroux
Date: Mon May 11 17:33:31 2009
New Revision: 773628

URL: http://svn.apache.org/viewvc?rev=773628&view=rev
Log:
Introducing "OFB" in entitengine.xml had a little impact here.
Not sure it's the best solution, but at least it's the simplest. Because else we will have also to change how ShoppingCart.setNextItemSeq() works, etc.
Maybe there are other places where "OFB" has an impact...

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=773628&r1=773627&r2=773628&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java Mon May 11 17:33:31 2009
@@ -304,6 +304,7 @@
             for (GenericValue item : orderItems) {
                 // get the next item sequence id
                 String orderItemSeqId = item.getString("orderItemSeqId");
+                orderItemSeqId = orderItemSeqId.replaceAll("\\P{Digit}", "");
                 try {
                     long seq = Long.parseLong(orderItemSeqId);
                     if (seq > nextItemSeq) {
@@ -671,6 +672,7 @@
             for(GenericValue quoteItem : quoteItems) {
                 // get the next item sequence id
                 String orderItemSeqId = quoteItem.getString("quoteItemSeqId");
+                orderItemSeqId = orderItemSeqId.replaceAll("\\P{Digit}", "");
                 try {
                     long seq = Long.parseLong(orderItemSeqId);
                     if (seq > nextItemSeq) {
@@ -857,6 +859,7 @@
             for(GenericValue shoppingListItem : shoppingListItems) {
                 // get the next item sequence id
                 String orderItemSeqId = shoppingListItem.getString("shoppingListItemSeqId");
+                orderItemSeqId = orderItemSeqId.replaceAll("\\P{Digit}", "");
                 try {
                     long seq = Long.parseLong(orderItemSeqId);
                     if (seq > nextItemSeq) {