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 2007/04/23 09:26:25 UTC

svn commit: r531361 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml

Author: hansbak
Date: Mon Apr 23 00:26:25 2007
New Revision: 531361

URL: http://svn.apache.org/viewvc?view=rev&rev=531361
Log:
remove roles from content and dataresource before deleting the content and dataresource itself

Modified:
    ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml

Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml?view=diff&rev=531361&r1=531360&r2=531361
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml Mon Apr 23 00:26:25 2007
@@ -94,6 +94,7 @@
                     <get-related value-name="contentAssoc" relation-name="FromContent" list-name="contents"/>
                     <if-not-empty field-name="contents">
                         <iterate entry-name="content" list-name="contents">
+                            <remove-related value-name="content" relation-name="ContentRole"/>
                             <remove-value value-name="content"/>
                             <get-related-one value-name="content" relation-name="DataResource" to-value-name="dataResource"/>
                             <if-not-empty field-name="dataResource">
@@ -105,6 +106,7 @@
                                 <if-not-empty field-name="electronicText">
                                     <remove-value value-name="electronicText"/>
                                 </if-not-empty>
+                                <remove-related value-name="dataResource" relation-name="DataResourceRole"/>
                                 <remove-value value-name="dataResource"/>
                             </if-not-empty>
                         </iterate>