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 2009/04/25 12:13:17 UTC

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

Author: hansbak
Date: Sat Apr 25 10:13:17 2009
New Revision: 768509

URL: http://svn.apache.org/viewvc?rev=768509&view=rev
Log:
reply on a email should close rolestatus of loggedin user of original email

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?rev=768509&r1=768508&r2=768509&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml Sat Apr 25 10:13:17 2009
@@ -78,15 +78,14 @@
                 return(resultLine);
                 }"/>
 
+            <!-- set rolestatus from original email to completed if logged-on userId can be found -->
             <entity-and list="roles" entity-name="CommunicationEventRole">
                 <field-map field-name="communicationEventId" from-field="parameters.parentCommEventId"/>
-                <field-map field-name="partyId" from-field="parameters.partyIdFrom"/>
+                <field-map field-name="partyId" from-field="userLogin.partyId"/>
             </entity-and>
             <if-not-empty field="roles">
                 <first-from-list list="roles" entry="role"/>
-                <set field="newStat.communicationEventId" from-field="parameters.parentCommEventId"/>
-                <set field="newStat.partyId" from-field="parameters.partyIdFrom"/>
-                <set field="newStat.roleTypeId" from-field="role.roleTypeId"/>
+                <set-service-fields service-name="setCommunicationEventRoleStatus" map="role" to-map="newStat"/>
                 <set field="newStat.statusId" value="COM_ROLE_COMPLETED"/>
                 <call-service service-name="setCommunicationEventRoleStatus" in-map-name="newStat"/>
             </if-not-empty>