From bcdec41f805034d231676db2c263f166ff58b44f Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Fri, 24 Jun 2016 21:37:11 +0000 Subject: [PATCH] A patch from Gopal Yadav for "Add Work Effort Party Assignment creates record with invalid PartyId" https://issues.apache.org/jira/browse/OFBIZ-7188 Steps to regenerate: 1. Go to FindWorkEffort screen https://localhost:8443/workeffort/control/FindWorkEffort 2. Click on Find button in search option and choose any of the WorkEffort from the list. 3. Go to the Parties tab to check parties assigned to the WorkEffort. 4. Add Work Effort Party Assignment: - Enter any invalid PartyId (which does not exist in the system e.g, XYZ or ABC) - Choose any of the roles from the drop-down list. - Add FromDate. - Submit the form. Current Behaviour: System creates a WorkEffortPartyAssignment record with invalid data (partyId). Expected: System should not create this record as entered data - partyId is invalid. Exploring around this issue I found that entity definition of WorkEffortPartyAssignment has relation with Person, here I think it is required to create a foreign key rule with Person entity. Also, fk-name has not been created with PartyRole in the entity definition. I have corrected the definition and attached a patch for the same. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1750166 13f79535-47bb-0310-9956-ffa450edef68 --- projectmgr/data/ProjectMgrDemoData.xml | 3 +++ scrum/data/scrumDemoData.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/projectmgr/data/ProjectMgrDemoData.xml b/projectmgr/data/ProjectMgrDemoData.xml index 215053f45..1f2cc6a55 100644 --- a/projectmgr/data/ProjectMgrDemoData.xml +++ b/projectmgr/data/ProjectMgrDemoData.xml @@ -109,6 +109,7 @@ under the License. + @@ -168,6 +169,8 @@ under the License. + + diff --git a/scrum/data/scrumDemoData.xml b/scrum/data/scrumDemoData.xml index 457166268..fb17f039a 100644 --- a/scrum/data/scrumDemoData.xml +++ b/scrum/data/scrumDemoData.xml @@ -49,6 +49,7 @@ under the License. +