Fixed a bug reported by CJay Harton in user ML, that caused new product creation for the same aggregated product configuration.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -3265,7 +3265,7 @@ public class ShoppingCart implements Serializable {
|
||||
try {
|
||||
//first search for existing productId
|
||||
newProductId = ProductWorker.getAggregatedInstanceId(getDelegator(), item.getProductId(), configId);
|
||||
if (configId.equals(newProductId)) {
|
||||
if (newProductId != null) {
|
||||
return newProductId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user