Skip to content

Import can't use add_update as behaviour #9310

@giacmir

Description

@giacmir

When importing products "add update" behaviour is shown among the other options, but if selected the import is done in "append" mode.

Preconditions

  1. Magento 2.1.4

Steps to reproduce

  1. Create a csv with a couple of products
  2. Put a breakpoint on \Magento\ImportExport\Model\Import\Entity\AbstractEntity::getBehavior
  3. select "add update" import mode and import your csv

Expected result

  1. \Magento\ImportExport\Model\Import\Entity\AbstractEntity::getBehavior should return "add_update"

Actual result

  1. Import mode is changed to "append"

This happens because of the check that doesn't allow "add_update" as a valid method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions