Author: arunpatidar
Date: Sun Jul 9 06:44:34 2017
New Revision: 1801350
URL:
http://svn.apache.org/viewvc?rev=1801350&view=revLog:
Fixed: WorkEffort shows error on adding party with specific role to Timesheet. (OFBIZ-9317)
Thanks Jagpreet for your contribution.
Modified:
ofbiz/ofbiz-framework/trunk/applications/workeffort/minilang/timesheet/TimesheetServices.xml
Modified: ofbiz/ofbiz-framework/trunk/applications/workeffort/minilang/timesheet/TimesheetServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/workeffort/minilang/timesheet/TimesheetServices.xml?rev=1801350&r1=1801349&r2=1801350&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/workeffort/minilang/timesheet/TimesheetServices.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/workeffort/minilang/timesheet/TimesheetServices.xml Sun Jul 9 06:44:34 2017
@@ -297,6 +297,9 @@ under the License.
<!-- TimesheetRole Services -->
<simple-method method-name="createTimesheetRole" short-description="Create TimesheetRole">
+ <set field="ensurePartyRoleCtx.partyId" from-field="parameters.partyId"/>
+ <set field="ensurePartyRoleCtx.roleTypeId" from-field="parameters.roleTypeId"/>
+ <call-service service-name="ensurePartyRole" in-map-name="ensurePartyRoleCtx"/>
<make-value value-field="newEntity" entity-name="TimesheetRole"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>