Skip to content

Importing: non-default multiple value separator can't be used in custom multiple select attribute #23156

Closed
@evs-xsarus

Description

@evs-xsarus

Preconditions (*)

Magento 2.4-develop

Steps to reproduce (*)

  1. Create a custom product attribute with type multi_select.
  2. Create a catalog_product.csv that contains product data and at least 1 multiselect attribute with 2 options or set two option values to the product, save and make export
  3. Separate options with custom separator, for example, |||
    image
  4. Go to the Magento admin panel -> System -> Import
  5. Set Multiple value separator to |||
    image
  6. Choose your file and click the Check Data button

Expected result (*)

  1. Validation should pass without problems

Actual result (*)

  1. Validation fails and tells us we have incorrect values for our multiselect attribute
    image

The code on https://github.com/magento/magento2/blob/2.3.1/app/code/Magento/CatalogImportExport/Model/Import/Product/Validator.php#L226

Fails to get the configured multiple value separator and pass it on in function $this->context->parseMultiselectValues.

NB I've actually imported the CSV programmaticaly and set parameter '_import_multiple_value_separator' as data in Magento\ImportExport\Model\ImportFactory->create().

Related tickets:

Metadata

Metadata

Labels

Component: ImportExportIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced 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 releaseReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions