You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Ulrich Heidfeld (JIRA)" <ji...@apache.org> on 2019/04/25 09:48:00 UTC

[jira] [Created] (OFBIZ-10958) Service createProductFeature ignores passed productFeatureId

Ulrich Heidfeld created OFBIZ-10958:
---------------------------------------

             Summary: 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: Ulrich Heidfeld


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)