You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Rene Scheibe (JIRA)" <ji...@apache.org> on 2011/05/11 09:58:47 UTC

[jira] [Updated] (OFBIZ-4276) ProductWorker#getSelectableProductFeaturesByTypesAndSeq() returns duplicate entries

     [ https://issues.apache.org/jira/browse/OFBIZ-4276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Scheibe updated OFBIZ-4276:
--------------------------------

    Attachment: OFBIZ-4276_ProductWorker.patch

Patch: Moved a statement out of a for loop to the correct place.

> ProductWorker#getSelectableProductFeaturesByTypesAndSeq() returns duplicate entries
> -----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4276
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4276
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Rene Scheibe
>            Priority: Minor
>         Attachments: OFBIZ-4276_ProductWorker.patch
>
>
> Calling ProductWorker#getSelectableProductFeaturesByTypesAndSeq() returns duplicate entries.
> Example:
> A virtual product with 2 variants:
> * variant 1 features
> ** COLOR: blau
> ** SIZE: XXL
> ** MATERIAL: Holz
> * variant 2 features:
> ** COLOR: rot
> ** SIZE: L
> ** MATERIAL: Stahl
> Actual output:
> {code}
> {
>   {{productFeatureTypeId=COLOR, description=Farbbezeichnung}, {productFeatureId=COLOR_BLAU, description=blau}, {productFeatureId=COLOR_ROT, description=rot}},
>   {{productFeatureTypeId=COLOR, description=Farbbezeichnung}, {productFeatureId=COLOR_BLAU, description=blau}, {productFeatureId=COLOR_ROT, description=rot}},
>   {{productFeatureTypeId=COLOR, description=Farbbezeichnung}, {productFeatureId=COLOR_BLAU, description=blau}, {productFeatureId=COLOR_ROT, description=rot}},
>   {{productFeatureTypeId=SIZE, description=Größe}, {productFeatureId=SIZE_XXL, description=XXL}, {productFeatureId=SIZE_L, description=L}},
>   {{productFeatureTypeId=SIZE, description=Größe}, {productFeatureId=SIZE_XXL, description=XXL}, {productFeatureId=SIZE_L, description=L}}
>   {{productFeatureTypeId=SIZE, description=Größe}, {productFeatureId=SIZE_XXL, description=XXL}, {productFeatureId=SIZE_L, description=L}},
>   {{productFeatureTypeId=MATERIAL, description=Material}, {productFeatureId=MATERIAL_HOLZ, description=Holz}, {productFeatureId=MATERIAL_STAHL, description=Stahl}},
>   {{productFeatureTypeId=MATERIAL, description=Material}, {productFeatureId=MATERIAL_HOLZ, description=Holz}, {productFeatureId=MATERIAL_STAHL, description=Stahl}}
> }
> {code}
> Expected output:
> {code}
> {
>   {{productFeatureTypeId=COLOR, description=Farbbezeichnung}, {productFeatureId=COLOR_BLAU, description=blau}, {productFeatureId=COLOR_ROT, description=rot}},
>   {{productFeatureTypeId=SIZE, description=Größe}, {productFeatureId=SIZE_XXL, description=XXL}, {productFeatureId=SIZE_L, description=L}},
>   {{productFeatureTypeId=MATERIAL, description=Material}, {productFeatureId=MATERIAL_HOLZ, description=Holz}, {productFeatureId=MATERIAL_STAHL, description=Stahl}}
> }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira