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

Montalbano Florian commented on OFBIZ-6989:
-------------------------------------------

I think I found where the problem is :
In the ProjectServices.xml, in the bloc of the method "updProjectRole", the 
query of the WorkEffortPartyAssignment list was a little off :
<entity-and entity-name="WorkEffortPartyAssignment" 
list="workEffortPartyAssignments" filter-by-date="true">
    <field-map field-name="workEffortId" from-field="parameters.workEffortId"/>
    <field-map field-name="roleTypeId" value="updProjectRole.roleTypeId"/>
</entity-and>

The second condition use the keyword "value" with a non-evaluate value. So the 
result list was always empty and thus engaged the creation of a new entry even 
if it already existed.

To correct it, I changed the keyword from "value" to "from-field".
I attached the patch in the issue.

This is my first patch so if I'm using the wrong procedure, don't hesitate to 
tell me.

Thanks.

> Editing project in Project Manager duplicates resources
> -------------------------------------------------------
>
>                 Key: OFBIZ-6989
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6989
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/projectmgr
>    Affects Versions: Release Branch 15.12
>            Reporter: Montalbano Florian
>            Assignee: Deepak Dixit
>            Priority: Minor
>              Labels: duplicate, projectmgr, resources
>
> In the Ofbiz 15.12 release (i didn't test it on the other version), when 
> selecting a project from the list and trying to edit it, clicking on the save 
> button cause the Client Billing Party Id and the Organization Party Id to be 
> added again in the resources list of the project summary (and in the 
> resources tab too). It happens even when you don't edit anything.
> It doesn't seem like a wanted behaviour but I'm new to Ofbiz so, I may be 
> wrong.
> Tell me if you need more information,
> Thanks.
> Florian



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

Reply via email to