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:50:35 UTC

svn commit: r782805 - /ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java

Author: lektran
Date: Mon Jun  8 21:50:35 2009
New Revision: 782805

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