Skip to content

url_key is empty by product import even if not wanted #12641

@benjamin-volle

Description

@benjamin-volle

url_redirect value is overrrided by each product import, even if it is not wanted

Preconditions

  1. Tested on Magento 2.2

Steps to reproduce

  1. Add some products to your instance
  2. Change url_key for one of them
  3. Import a file (append behavior) with only two columns : sku,price (including the previous product)

Expected result

  1. Prce is updated, url_key is not changed

Actual result

  1. Price is updated, but url_key is empty

The problem is that url_key is always generated by import, because of this addition :
ebc946a

In the past (before 2.2, the url_key value was stripped by the function :
\Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType::clearEmptyData

But now, since there was a modification from "empty" to "!isset", the '' (empty) value is not stripped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ImportExportFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: 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 passedProgress: needs update

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions