[jira] [Commented] (OFBIZ-7188) Add Work Effort Party Assignment creates record with invalid PartyId

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7188) Add Work Effort Party Assignment creates record with invalid PartyId

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15315511#comment-15315511 ]

Gopal Yadav commented on OFBIZ-7188:
------------------------------------

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.

> Add Work Effort Party Assignment creates record with invalid PartyId
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-7188
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7188
>             Project: OFBiz
>          Issue Type: Bug
>          Components: workeffort
>    Affects Versions: Trunk
>            Reporter: Gopal Yadav
>              Labels: workeffort
>         Attachments: OFBIZ-7188.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)