Author: bibryam
Date: Sat Aug 30 12:36:35 2008
New Revision: 690564
URL:
http://svn.apache.org/viewvc?rev=690564&view=revLog:
Fix a bug with empty String value in facilityId field, reported by Vikas in dev list.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java?rev=690564&r1=690563&r2=690564&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java Sat Aug 30 12:36:35 2008
@@ -752,7 +752,9 @@
}
String supplierPartyId = request.getParameter(shipGroupIndex + "_supplierPartyId");
String facilityId = request.getParameter(shipGroupIndex + "_shipGroupFacilityId");
- cart.setShipGroupFacilityId(shipGroupIndex, facilityId);
+ if (UtilValidate.isNotEmpty(facilityId)) {
+ cart.setShipGroupFacilityId(shipGroupIndex, facilityId);
+ }
callResult = checkOutHelper.finalizeOrderEntryShip(shipGroupIndex, shippingContactMechId, supplierPartyId);
ServiceUtil.addErrors(errorMessages, errorMaps, callResult);
}