[jira] [Commented] (OFBIZ-8723) Entity Auto services set remaining fields to null when passed only required fields

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

[jira] [Commented] (OFBIZ-8723) Entity Auto services set remaining fields to null when passed only required fields

Nicolas Malin (Jira)

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

Pawan Verma commented on OFBIZ-8723:
------------------------------------

While looking into this issue, I found that in EntityAutoEngine.java in invokeUpdate method at line no 439 setNonPKFields(parameters, true) is set to true, this is  the reason for this issue.

> Entity Auto services set remaining fields to null when passed only required fields
> ----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-8723
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-8723
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Pawan Verma
>
> Entity Auto services set remaining fields to null when passed only required fields.
> For example : Suppose we want to update only noteInfo field of a Note. I used Service updateNote from webtools passed only noteId and noteInfo.
> Expected : Only noteInfo field should be updated.
> Actual : All fields other than noteId and noteInfo is set to null.



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