svn commit: r684611 - /ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml

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

svn commit: r684611 - /ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml

hansbak-2
Author: hansbak
Date: Sun Aug 10 16:33:34 2008
New Revision: 684611

URL: http://svn.apache.org/viewvc?rev=684611&view=rev
Log:
some corrections in the create workeffort from custRequest service

Modified:
    ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml

Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=684611&r1=684610&r2=684611&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original)
+++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Sun Aug 10 16:33:34 2008
@@ -74,11 +74,12 @@
             <set field="custRequestWorkEffort.workEffortId" from-field="newEntity.workEffortId" />
             <set field="custRequestWorkEffort.custRequestId" from-field="parameters.custRequestId"/>
             <create-value value-name="custRequestWorkEffort"/>
-            <entity-and list-name="CustRequestCommEvents" entity-name="CustRequestCommEvent">
+            <entity-and list-name="custRequestCommEvents" entity-name="CustRequestCommEvent">
                 <field-map field-name="custRequestId" env-name="parameters.custRequestId"/>
             </entity-and>
             <iterate entry-name="custRequestCommEvent" list-name="custRequestCommEvents">
-                <get-related relation-name="Content" value-name="custRequestCommEvent" list-name="allCommEventContents"/>
+                <get-related-one value-name="custRequestCommEvent" relation-name="CommunicationEvent" to-value-name="communicationEvent"/>
+                <get-related relation-name="CommEventContentAssoc" value-name="communicationEvent" list-name="allCommEventContents"/>
                 <filter-list-by-date list-name="allCommEventContents" to-list-name="commEventContents"/>            
                 <iterate entry-name="commEventContent" list-name="commEventContents">
                     <set field="newWorkEffortContent.workEffortId" from-field="newEntity.workEffortId"/>