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:
Bilgin Ismet Ibryam
2009-04-06 08:12:03 +00:00
parent c5c69f2271
commit 85ce1cffbc
@@ -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;
}