Skip to content
Permalink
Browse files

Fixed: When add item on shopping cart, we lost orderItemAttributes

(OFBIZ-10906)
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/trunk@1856880 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
nmalin committed Apr 3, 2019
1 parent 9f36abe commit e8b826ce3c14496c9e8aecc7bba23672403311d4
@@ -528,7 +528,7 @@ public int addOrIncreaseItem(String productId, BigDecimal selectedAmount, BigDec
String accommodationMapId, String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate, Map<String, GenericValue> features, Map<String,Object> attributes,
Map<String, String> 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*/

0 comments on commit e8b826c

Please sign in to comment.
You can’t perform that action at this time.