svn commit: r825695 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml

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

svn commit: r825695 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml

lektran
Author: lektran
Date: Thu Oct 15 23:12:41 2009
New Revision: 825695

URL: http://svn.apache.org/viewvc?rev=825695&view=rev
Log:
Fix a bug in the duplicateProductCategory service, when looking for parent category rollups to duplicate the find context was empty causing all rollups of all categories to be retrieved

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml?rev=825695&r1=825694&r2=825695&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml Thu Oct 15 23:12:41 2009
@@ -601,7 +601,9 @@
             child roll up is where oldProductCategoryId = ProductCategoryRollup.parentProductCategoryId and hence
             requires a new find-by map -->
         <if-not-empty field="parameters.duplicateParentRollup">
-            <find-by-and entity-name="ProductCategoryRollup" map="categoryFindContext" list="foundValues"/>
+            <entity-and entity-name="ProductCategoryRollup" list="foundValues">
+                <field-map field-name="productCategoryId" from-field="parameters.oldProductCategoryId"/>
+            </entity-and>
             <iterate entry="foundValue" list="foundValues">
                 <clone-value value-field="foundValue" new-value-field="newTempValue"/>
                 <set field="newTempValue.productCategoryId" from-field="parameters.productCategoryId"/>