Author: jleroux
Date: Fri Jan 23 08:43:49 2009
New Revision: 737077
URL:
http://svn.apache.org/viewvc?rev=737077&view=revLog:
A fix from a patch from Stephen Rufle "OrderServices.updateApprovedOrderItems should update OrderItemAttributes" '(
https://issues.apache.org/jira/browse/OFBIZ-2115) - OFBIZ-2115
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=737077&r1=737076&r2=737077&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 Fri Jan 23 08:43:49 2009
@@ -439,10 +439,10 @@
List<GenericValue> orderItemContactMechList = null;
try {
orderItemContactMechList = delegator.findByAnd("OrderItemContactMech", UtilMisc.toMap("orderId", orderId, "orderItemSeqId", orderItemSeqId));
- if (UtilValidate.isNotEmpty(orderAttributesList)) {
- for (GenericValue orderItemAttr : orderItemContactMechList) {
- String contactMechPurposeTypeId = orderItemAttr.getString("contactMechPurposeTypeId");
- String contactMechId = orderItemAttr.getString("contactMechId");
+ if (UtilValidate.isNotEmpty(orderItemContactMechList)) {
+ for (GenericValue orderItemContactMech : orderItemContactMechList) {
+ String contactMechPurposeTypeId = orderItemContactMech.getString("contactMechPurposeTypeId");
+ String contactMechId = orderItemContactMech.getString("contactMechId");
cartItem.addContactMech(contactMechPurposeTypeId, contactMechId);
}
}