svn commit: r1646973 - /ofbiz/branches/release13.07/applications/product/src/org/ofbiz/product/product/ProductWorker.java

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

svn commit: r1646973 - /ofbiz/branches/release13.07/applications/product/src/org/ofbiz/product/product/ProductWorker.java

ashish-18
Author: ashish
Date: Sat Dec 20 12:58:11 2014
New Revision: 1646973

URL: http://svn.apache.org/r1646973
Log:
Applied bug fix from trunk r1646966
======================================================
Applied patch from jira issue OFBIZ-5385 - Purchase order immutable/unchangeable errors when adding variant products.
Thanks Christian for reporting the issue. Thanks Arun for providing the patch.
======================================================

Modified:
    ofbiz/branches/release13.07/applications/product/src/org/ofbiz/product/product/ProductWorker.java

Modified: ofbiz/branches/release13.07/applications/product/src/org/ofbiz/product/product/ProductWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/product/src/org/ofbiz/product/product/ProductWorker.java?rev=1646973&r1=1646972&r2=1646973&view=diff
==============================================================================
--- ofbiz/branches/release13.07/applications/product/src/org/ofbiz/product/product/ProductWorker.java (original)
+++ ofbiz/branches/release13.07/applications/product/src/org/ofbiz/product/product/ProductWorker.java Sat Dec 20 12:58:11 2014
@@ -1104,14 +1104,14 @@ nextProd:
                 Debug.logInfo("set the productId to: " + product.getString("productId"), module);
 
                 // copy the supplier
-                List<GenericValue> supplierProducts = delegator.findByAnd("SupplierProduct", UtilMisc.toMap("productId", productId), null, true);
+                List<GenericValue> supplierProducts = delegator.findByAnd("SupplierProduct", UtilMisc.toMap("productId", productId), null, false);
                 for (GenericValue supplierProduct: supplierProducts) {
                     supplierProduct.set("productId",  product.getString("productId"));
                     supplierProduct.create();
                 }
 
                 // copy the content
-                List<GenericValue> productContents = delegator.findByAnd("ProductContent", UtilMisc.toMap("productId", productId), null, true);
+                List<GenericValue> productContents = delegator.findByAnd("ProductContent", UtilMisc.toMap("productId", productId), null, false);
                 for (GenericValue productContent: productContents) {
                     productContent.set("productId",  product.getString("productId"));
                     productContent.create();