Skip to content

Commit

Permalink
Fixed: When add item on shopping cart, we lost orderItemAttributes
Browse files Browse the repository at this point in the history
(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 e8b826c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down

0 comments on commit e8b826c

Please sign in to comment.