Files
ofbiz-plugins/projectmgr
Jacques Le Roux bcdec41f80 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
2016-06-24 21:37:11 +00:00
..

<#--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->

This OFBiz component enables organisations to manage projects, project phases and project tasks.
For more information about this component visit the product page in the OFBiz WIKI, 
which can be found at https://cwiki.apache.org/confluence/display/OFBIZ/Project+Management

JIRA issues related to this component can be found at https://issues.apache.org/jira/browse/OFBIZ/component/12312073

Committed revisions can be viewed at http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/