ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-10958) Service createProductFeature ignores passed productFeatureId
Date Sun, 28 Apr 2019 12:15:00 GMT

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

Jacques Le Roux commented on OFBIZ-10958:
-----------------------------------------

Thanks Swapnil,

I never looked at it, but I guess that's why INOUT exists ;)

> Service createProductFeature ignores passed productFeatureId
> ------------------------------------------------------------
>
>                 Key: OFBIZ-10958
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10958
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Ulrich Heidfeld
>            Assignee: Swapnil M Mane
>            Priority: Minor
>             Fix For: 16.11.06
>
>         Attachments: OFBIZ-10958_Fix_createProductFeature.patch
>
>
> Service "createProductFeature" ignores passed productFeatureId caused by overwritten
output parameter. If I do following changes, this problem disappears.
>  original:
> {code:xml}
> <service name="createProductFeature" engine="entity-auto" invoke="create"
>              default-entity-name="ProductFeature" auth="true">
>     <description>Create a ProductFeature record</description>
>     <auto-attributes include="all" mode="IN" optional="true"/>
>     <attribute name="productFeatureId" type="String" mode="OUT" optional="false"/>
>     <override name="productFeatureTypeId" mode="IN" optional="false"/>
>     <override name="description" mode="IN" optional="false"/>
> </service>
> {code}
> Fix:
> {code:xml}
> <service name="createProductFeature" engine="entity-auto" invoke="create" 
>         default-entity-name="ProductFeature" auth="true"> 
>     <description>Create a ProductFeature record</description> 
>     <auto-attributes include="all" mode="IN" optional="true"/> 
>     <override name="productFeatureId" type="String" mode="INOUT" optional="true"/>
>     <override name="productFeatureTypeId" mode="IN" optional="false"/> 
>     <override name="description" mode="IN" optional="false"/> 
> </service>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message