Fix - Adding same variants more then once to cart are displayed as separate cart items. Reported and fix provided by Mridul Pathak

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@683930 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vikas Mayur
2008-08-08 10:20:16 +00:00
parent 7bcc504101
commit 82d1ae0e43
@@ -2283,7 +2283,7 @@ public class ShoppingCartItem implements java.io.Serializable {
return false;
}
if ((this.additionalProductFeatureAndAppls != null && additionalProductFeatureAndAppls != null) &&
if ((UtilValidate.isNotEmpty(this.additionalProductFeatureAndAppls) && UtilValidate.isNotEmpty(additionalProductFeatureAndAppls)) &&
(this.additionalProductFeatureAndAppls.size() != additionalProductFeatureAndAppls.size()) &&
!(this.additionalProductFeatureAndAppls.equals(additionalProductFeatureAndAppls))) {
return false;