You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2012/05/14 05:15:44 UTC

svn commit: r1338025 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml

Author: hansbak
Date: Mon May 14 03:15:43 2012
New Revision: 1338025

URL: http://svn.apache.org/viewvc?rev=1338025&view=rev
Log:
fix remove image in image management

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml?rev=1338025&r1=1338024&r2=1338025&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementServices.xml Mon May 14 03:15:43 2012
@@ -182,10 +182,16 @@ under the License.
             <remove-value value-field="contentApproval"/>
         </iterate>
         
+        <entity-and entity-name="ContentKeyword" list="contentKeywords">
+            <field-map field-name="contentId" from-field="parameters.contentId"/>
+        </entity-and>
+        <iterate entry="contentKeyword" list="contentKeywords">
+            <remove-value value-field="contentKeyword"/>
+        </iterate>
+        
         <entity-one value-field="content" entity-name="Content">
             <field-map field-name="contentId" from-field="parameters.contentId"/>
         </entity-one>
-        
         <set field="removeContentPKMap.contentId" from-field="parameters.contentId"/>
         <set-service-fields service-name="removeContent" map="removeContentPKMap" to-map="removeContentMap"/>
         <call-service service-name="removeContent" in-map-name="removeContentMap"/>
@@ -201,7 +207,6 @@ under the License.
         <entity-one value-field="dataResource" entity-name="DataResource">
             <field-map field-name="dataResourceId" from-field="dataResourceId"/>
         </entity-one>
-        
         <set field="removeImageFile.productId" from-field="parameters.productId"/>
         <set field="removeImageFile.contentId" from-field="parameters.contentId"/>
         <set field="removeImageFile.objectInfo" from-field="dataResource.objectInfo"/>