Author: jleroux
Date: Mon May 11 17:33:31 2009
New Revision: 773628
URL:
http://svn.apache.org/viewvc?rev=773628&view=revLog:
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) {