Author: jleroux
Date: Fri Oct 18 17:21:15 2013
New Revision: 1533563
URL:
http://svn.apache.org/r1533563Log:
"Applied fix from trunk for revision: 1509164"
------------------------------------------------------------------------
r1509164 | jleroux | 2013-08-01 12:47:02 +0200 (jeu. 01 août 2013) | 3 lignes
A patch from János Zsolt for "Load cart from order loses OrderItemAttributes"
https://issues.apache.org/jira/browse/OFBIZ-5286When an order is created from a cart, OrderItemAttribute entities are created as expected. But when this same order is used to load back to the cart, the OrderItemAttributes are not reset. I found the cause of this issue in the org.ofbiz.order.shoppingcart.ShoppingCartServices.loadCartFromOrder(DispatchContext, Map<String, Object>) method.
------------------------------------------------------------------------
Modified:
ofbiz/branches/release13.07/ (props changed)
ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
Propchange: ofbiz/branches/release13.07/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1509164
Modified: ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java?rev=1533563&r1=1533562&r2=1533563&view=diff==============================================================================
--- ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java (original)
+++ ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartServices.java Fri Oct 18 17:21:15 2013
@@ -510,7 +510,7 @@ public class ShoppingCartServices {
List<GenericValue> orderItemAttributesList = null;
try {
orderItemAttributesList = delegator.findByAnd("OrderItemAttribute", UtilMisc.toMap("orderId", orderId, "orderItemSeqId", orderItemSeqId), null, false);
- if (UtilValidate.isNotEmpty(orderAttributesList)) {
+ if (UtilValidate.isNotEmpty(orderItemAttributesList)) {
for (GenericValue orderItemAttr : orderItemAttributesList) {
String name = orderItemAttr.getString("attrName");
String value = orderItemAttr.getString("attrValue");