Author: lektran
Date: Thu Oct 15 23:13:32 2009
New Revision: 825696
URL:
http://svn.apache.org/viewvc?rev=825696&view=revLog:
Merged from trunk r825695
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/branches/release09.04/applications/product/script/org/ofbiz/product/category/CategoryServices.xml
Modified: ofbiz/branches/release09.04/applications/product/script/org/ofbiz/product/category/CategoryServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/script/org/ofbiz/product/category/CategoryServices.xml?rev=825696&r1=825695&r2=825696&view=diff==============================================================================
--- ofbiz/branches/release09.04/applications/product/script/org/ofbiz/product/category/CategoryServices.xml (original)
+++ ofbiz/branches/release09.04/applications/product/script/org/ofbiz/product/category/CategoryServices.xml Thu Oct 15 23:13:32 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"/>