-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 16.11.05, 18.12.01, 17.12.01, Trunk
-
Fix Version/s: 16.11.06, 18.12.01, 17.12.01, Upcoming Branch
-
Component/s: order
-
Labels:None
When you clone a ShoppingCartItem by constructor
new ShoppingCartItem(ShoppingCartItem item)
Values contains on list OrderItemAttributes aren't propage to the new shoppingCartItem due to (ShoppingCartItem.java:682)
if (UtilValidate.isEmpty(item.getOrderItemAttributes())) { this.orderItemAttributes = new HashMap<>(); this.orderItemAttributes.putAll(item.getOrderItemAttributes()); }
isEmpty instead of isNotEmpty