Author: lektran
Date: Mon Jun 8 21:42:28 2009
New Revision: 782799
URL:
http://svn.apache.org/viewvc?rev=782799&view=revLog:
Fixed bug reported by Jan Valkovic, OFBIZ-2567 Incorrectly named entity referred to in a getNextSeqId call
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java?rev=782799&r1=782798&r2=782799&view=diff==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java Mon Jun 8 21:42:28 2009
@@ -740,7 +740,7 @@
String productId = (String) context.get("productId");
if (UtilValidate.isEmpty(productId)) {
- productId = "VP" + delegator.getNextSeqId("VirtualProduct");
+ productId = "VP" + delegator.getNextSeqId("Product");
// Create new virtual product...
GenericValue product = delegator.makeValue("Product");
product.set("productId", productId);