Author: jleroux
Date: Sat Nov 15 21:24:02 2014
New Revision: 1639924
URL:
http://svn.apache.org/r1639924Log:
"Applied fix from trunk for revision: 1639846"
------------------------------------------------------------------------
r1639846 | ashish | 2014-11-15 09:57:13 +0100 (sam. 15 nov. 2014) | 2 lignes
Applied patch from jira issue - OFBIZ-2567 - Entity VirtualProduct missing.
Thanks Jan Valkovic for reporting the issue, Thanks Deepak for providing the patch for the same.
------------------------------------------------------------------------
Modified:
ofbiz/branches/release12.04/ (props changed)
ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/product/ProductServices.java
Propchange: ofbiz/branches/release12.04/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1639846
Modified: ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/product/ProductServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/product/ProductServices.java?rev=1639924&r1=1639923&r2=1639924&view=diff==============================================================================
--- ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/product/ProductServices.java (original)
+++ ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/product/ProductServices.java Sat Nov 15 21:24:02 2014
@@ -801,11 +801,11 @@ public class ProductServices {
Map<String, Object> successResult = ServiceUtil.returnSuccess();
try {
- // Generate new virtual productId, prefix with "VP", put in successResult
+ // Generate new virtual productId, put in successResult
String productId = (String) context.get("productId");
if (UtilValidate.isEmpty(productId)) {
- productId = "VP" + delegator.getNextSeqId("Product");
+ productId = delegator.getNextSeqId("Product");
// Create new virtual product...
GenericValue product = delegator.makeValue("Product");
product.set("productId", productId);