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

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

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

hansbak-2
Author: hansbak
Date: Wed Dec  6 17:26:20 2006
New Revision: 483321

URL: http://svn.apache.org/viewvc?view=rev&rev=483321
Log:
now possble to delete a communicationevent when there are roles attached

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

Modified: incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml?view=diff&rev=483321&r1=483320&r2=483321
==============================================================================
--- incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml (original)
+++ incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml Wed Dec  6 17:26:20 2006
@@ -110,7 +110,8 @@
                 </if-compare>  
             </iterate>
         </if-not-empty>
-        <!-- delete the event itself -->
+        <!-- delete the roles when exist and the event itself -->
+        <remove-related value-name="event" relation-name="CommunicationEventRole"/>
         <remove-value value-name="event"/>
     </simple-method>
     <simple-method method-name="deleteCommunicationEventWorkEffort" short-description="delete commEvent and workEffort">
@@ -129,6 +130,7 @@
                 <get-related value-name="workEffort" relation-name="CommunicationEventWorkEff" list-name="otherComs"/>
                 <if-empty field-name="otherComs">
                     <log level="info" message="remove workeffort ${workEffort.workEffortId} and related parties and status"/>
+                    <remove-related value-name="workEffort" relation-name="WorkEffortPartyAssignment"/>
                     <remove-related value-name="workEffort" relation-name="WorkEffortPartyAssignment"/>
                     <remove-related value-name="workEffort" relation-name="WorkEffortStatus"/>
                     <remove-value value-name="workEffort"/>