From 187c035b2bf3ededddc1d8a8ac0638f394f61b98 Mon Sep 17 00:00:00 2001 From: Nicolas Malin Date: Wed, 3 Apr 2019 14:46:32 +0000 Subject: [PATCH] Fixed: When add item on shopping cart, we lost orderItemAttributes (OFBIZ-10906) Backport: When you add an item on the cart with some orderItemAttributes with the function /** add rental (with accommodation) item to cart and order item attributes*/ public int addOrIncreaseItem(...too long...) OrderItemAttributes didn't throw to the second function and we lost them. Thanks to Leila Mekika to found it. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1856881 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/ofbiz/order/shoppingcart/ShoppingCart.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCart.java b/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCart.java index 8d23106cff..6eab150f64 100644 --- a/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCart.java +++ b/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCart.java @@ -528,7 +528,7 @@ public class ShoppingCart implements Iterable, Serializable { String accommodationMapId, String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map features, Map attributes, Map orderItemAttributes, String prodCatalogId, ProductConfigWrapper configWrapper, String itemType, String itemGroupNumber, String parentProductId, LocalDispatcher dispatcher) throws CartItemModifyException, ItemNotFoundException { - return addOrIncreaseItem(productId, selectedAmount, quantity, reservStart, reservLength, reservPersons, accommodationMapId, accommodationSpotId, shipBeforeDate, shipAfterDate, null, features, attributes, null, prodCatalogId, configWrapper, itemType, itemGroupNumber, parentProductId, dispatcher); + return addOrIncreaseItem(productId, selectedAmount, quantity, reservStart, reservLength, reservPersons, accommodationMapId, accommodationSpotId, shipBeforeDate, shipAfterDate, null, features, attributes, orderItemAttributes, prodCatalogId, configWrapper, itemType, itemGroupNumber, parentProductId, dispatcher); } /** add rental (with accommodation) item to cart and order item attributes*/