Author: hansbak
Date: Sat Apr 25 10:15:50 2009
New Revision: 768510

URL: http://svn.apache.org/viewvc?rev=768510&view=rev
Log:
Applied fix from trunk for revision: 768509

Modified:
    
ofbiz/branches/release09.04/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml

Modified: 
ofbiz/branches/release09.04/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml?rev=768510&r1=768509&r2=768510&view=diff
==============================================================================
--- 
ofbiz/branches/release09.04/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
 (original)
+++ 
ofbiz/branches/release09.04/applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
 Sat Apr 25 10:15:50 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>


Reply via email to