You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/06/08 23:42:29 UTC

svn commit: r782799 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java

Author: lektran
Date: Mon Jun  8 21:42:28 2009
New Revision: 782799

URL: http://svn.apache.org/viewvc?rev=782799&view=rev
Log:
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);