Skip to content

ImportExport Custom option dropdown with price 0 causing indexer issues #6701

@paales

Description

@paales

Preconditions

  1. 2.1.0

Steps to reproduce

  1. Create an import with a dropdown option that is required.
  2. Add an option with the price 0

Expected result

  1. The catalog price shouldn't increase.

Actual result

  1. Catalog price increases, because it selects the lowest price from catalog_product_option_type_price but the value isn't inserted.

This line should be isset() instead of !empty():
https://github.com/magento/magento2/blob/develop/app/code/Magento/CatalogImportExport/Model/Import/Product/Option.php#L1618

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ImportExportIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPartner: Reach DigitalPull Request is created by partner Reach DigitalReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions