You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (JIRA)" <ji...@apache.org> on 2019/04/16 18:29:00 UTC
[jira] [Created] (OFBIZ-10929) Duplicate a ShoppingCartItem didn't
propage OrderItemAttributes
Nicolas Malin created OFBIZ-10929:
-------------------------------------
Summary: Duplicate a ShoppingCartItem didn't propage OrderItemAttributes
Key: OFBIZ-10929
URL: https://issues.apache.org/jira/browse/OFBIZ-10929
Project: OFBiz
Issue Type: Bug
Components: order
Affects Versions: 16.11.05, Trunk, 17.12.01, 18.12.01
Reporter: Nicolas Malin
Assignee: Nicolas Malin
When you clone a ShoppingCartItem by constructor
{code:java}
new ShoppingCartItem(ShoppingCartItem item){code}
Values contains on list OrderItemAttributes aren't propage to the new shoppingCartItem due to (ShoppingCartItem.java:682)
{code:java}
if (UtilValidate.isEmpty(item.getOrderItemAttributes())) {
this.orderItemAttributes = new HashMap<>();
this.orderItemAttributes.putAll(item.getOrderItemAttributes());
}
{code}
isEmpty instead of isNotEmpty
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)