svn commit: r749047 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/feature/ProductFeatureServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r749047 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/feature/ProductFeatureServices.java

jleroux@apache.org
Author: jleroux
Date: Sun Mar  1 15:42:05 2009
New Revision: 749047

URL: http://svn.apache.org/viewvc?rev=749047&view=rev
Log:
A patch from Eric De Maulde "Product Id for SEO (variants)" (https://issues.apache.org/jira/browse/OFBIZ-2214) - OFBIZ-2214

Modified:
    ofbiz/trunk/applications/product/src/org/ofbiz/product/feature/ProductFeatureServices.java

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/feature/ProductFeatureServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/feature/ProductFeatureServices.java?rev=749047&r1=749046&r2=749047&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/feature/ProductFeatureServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/feature/ProductFeatureServices.java Sun Mar  1 15:42:05 2009
@@ -273,7 +273,7 @@
             for (Map<String, Object> combination: oldCombinations) {
                 // Verify if the default code is already used, if so add a numeric suffix
                 if (defaultVariantProductIds.contains((String) combination.get("defaultVariantProductId"))) {
-                    combination.put("defaultVariantProductId", combination.get("defaultVariantProductId") + (defaultCodeCounter < 10? "0" + defaultCodeCounter: "" + defaultCodeCounter));
+                    combination.put("defaultVariantProductId", combination.get("defaultVariantProductId") + "-" + (defaultCodeCounter < 10? "0" + defaultCodeCounter: "" + defaultCodeCounter));
                     defaultCodeCounter++;
                 }
                 defaultVariantProductIds.add((String) combination.get("defaultVariantProductId"));