This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch release17.12 in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit 8dc864ff71edebc66ed4af5adb77765369bf7133 Author: Jacques Le Roux <[email protected]> AuthorDate: Sat Jul 25 19:24:50 2020 +0200 Fixed: Unable to create event in SFA component (OFBIZ-9901) The tests failed because CAL_OWNER instead of CONTACT was necessary Handled by hand, cherry-pick was impossible --- applications/workeffort/minilang/test/WorkEffortTests.xml | 6 +++--- applications/workeffort/testdef/data/WorkEffortTestData.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/applications/workeffort/minilang/test/WorkEffortTests.xml b/applications/workeffort/minilang/test/WorkEffortTests.xml index a93e7a7..eadae7a 100644 --- a/applications/workeffort/minilang/test/WorkEffortTests.xml +++ b/applications/workeffort/minilang/test/WorkEffortTests.xml @@ -22,7 +22,7 @@ under the License. xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd"> <simple-method method-name="testCreateWorkEffortAndPartyAssign" short-description="Test the service createWorkEffortAndPartyAssign" login-required="false"> <set field="serviceCtx.partyId" value="TestParty-1"/> - <set field="serviceCtx.roleTypeId" value="CONTACT"/> + <set field="serviceCtx.roleTypeId" value="CAL_OWNER"/> <set field="serviceCtx.statusId" value="PRTYASGN_ASSIGNED"/> <set field="serviceCtx.workEffortId" value="TestWorkEffort-1"/> <set field="serviceCtx.partyTypeId" value="PARTY_GROUP"/> @@ -39,7 +39,7 @@ under the License. <entity-one entity-name="WorkEffort" value-field="workEffort"/> <set field="lookupKeyValue.workEffortId" from-field="workEffortId"/> <set field="lookupKeyValue.partyId" value="TestParty-1"/> - <set field="lookupKeyValue.roleTypeId" value="CONTACT"/> + <set field="lookupKeyValue.roleTypeId" value="CAL_OWNER"/> <find-by-and entity-name="WorkEffortPartyAssignment" map="lookupKeyValue" list="workEffortPartyAssignmentList"/> <first-from-list entry="workEffortPartyAssignment" list="workEffortPartyAssignmentList"/> <assert> @@ -577,4 +577,4 @@ under the License. </assert> <check-errors/> </simple-method> -</simple-methods> \ No newline at end of file +</simple-methods> diff --git a/applications/workeffort/testdef/data/WorkEffortTestData.xml b/applications/workeffort/testdef/data/WorkEffortTestData.xml index 6aa37e0..660d5ff 100644 --- a/applications/workeffort/testdef/data/WorkEffortTestData.xml +++ b/applications/workeffort/testdef/data/WorkEffortTestData.xml @@ -38,7 +38,7 @@ under the License. <Party partyId="TestParty-1" partyTypeId="PERSON" statusId="PARTY_ENABLED"/> <Person partyId="TestParty-1" firstName="Test" lastName="Party"/> - <PartyRole partyId="TestParty-1" roleTypeId="CONTACT"/> + <PartyRole partyId="TestParty-1" roleTypeId="CAL_OWNER"/> <PartyRole partyId="TestParty-1" roleTypeId="CUSTOMER"/> <PartyRole partyId="TestParty-1" roleTypeId="ACCOUNTANT"/> <PartyStatus partyId="TestParty-1" statusId="PARTY_ENABLED" statusDate="2001-01-01 12:00:00.0"/> @@ -79,4 +79,4 @@ under the License. <TimeEntry timeEntryId="TestTimeEntry-3" hours="8.0" workEffortId="TestWorkeffort-4" invoiceId="TestInvoice" partyId="TestParty" rateTypeId="STANDARD"/> <RateAmount rateTypeId="STANDARD" workEffortId="_NA_" partyId="TestParty" periodTypeId="RATE_HOUR" emplPositionTypeId="_NA_" fromDate="2000-01-01 00:00:00.0" rateAmount="95.00" rateCurrencyUomId="USD"/> -</entity-engine-xml> \ No newline at end of file +</entity-engine-xml>

