Author: hansbak
Date: Thu Jan 3 06:05:18 2008
New Revision: 608490
URL:
http://svn.apache.org/viewvc?rev=608490&view=revLog:
call update workeffort direct to avoid workeffort security
Modified:
ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
Modified: ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml?rev=608490&r1=608489&r2=608490&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml Thu Jan 3 06:05:18 2008
@@ -74,6 +74,7 @@
</then>
<else>
<!-- status changed or assignment ended -->
+ <log level="always" message="=====get====parameters: ${parameters}"></log>
<entity-one entity-name="WorkEffortPartyAssignment" value-name="assignment"/>
<if-compare field-name="parameters.statusId" value="PAS_ENDED" operator="equals">
<!-- special case to indicate end of assignment -->
@@ -111,10 +112,9 @@
</iterate>
</if-not-empty>
<if-empty field-name="status">
- <set field="inMap.workEffortId" from-field="parameters.workEffortId"/>
- <set field="inMap.currentStatusId" value="PTS_COMPLETED"/>
- <now-timestamp-to-env env-name="inMap.actualCompletionDate"/>
- <call-service service-name="updateWorkEffort" in-map-name="inMap"/>
+ <now-timestamp-to-env env-name="parameters.actualCompletionDate"/>
+ <set field="parameters.currentStatusId" value="PTS_COMPLETED"/>
+ <call-simple-method method-name="updateWorkEffort" xml-resource="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"/>
</if-empty>
</simple-method>