Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10958

Service createProductFeature ignores passed productFeatureId

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.06
    • Component/s: None
    • Labels:
      None

      Description

      Service "createProductFeature" ignores passed productFeatureId caused by overwritten output parameter. If I do following changes, this problem disappears.
      original:

      <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>
      

      Fix:

      <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>
      

        Attachments

          Activity

            People

            • Assignee:
              swapnilmmane Swapnil Mane
              Reporter:
              uHeidfeld Ulrich Heidfeld
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: