Author: lektran
Date: Mon Jun 8 21:50:35 2009
New Revision: 782805
URL:
http://svn.apache.org/viewvc?rev=782805&view=revLog:
Merged from trunk r782801:
Fixed bug reported by Jan Valkovic, OFBIZ-2567 Incorrectly named entity referred to in a getNextSeqId call
Modified:
ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java
Modified: ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java?rev=782805&r1=782804&r2=782805&view=diff==============================================================================
--- ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java (original)
+++ ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java Mon Jun 8 21:50:35 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);