Skip to content

Commit a394ae1

Browse files
committed
ACP2E-2261: [Cloud] Product import fails with custom separator value
1 parent 3e8a20e commit a394ae1

File tree

1 file changed

+8
-0
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+8
-0
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2894,6 +2894,14 @@ private function parseAttributesWithoutWrappedValues($attributesData)
28942894
if (!$code) {
28952895
continue;
28962896
}
2897+
//concatenate attribute values with last used separator in case of array
2898+
if (is_array($preparedAttributes[$code])
2899+
&& str_contains($attributesData, self::PSEUDO_MULTI_LINE_SEPARATOR)) {
2900+
$preparedAttributes[$code] = implode(
2901+
self::PSEUDO_MULTI_LINE_SEPARATOR,
2902+
$preparedAttributes[$code]
2903+
);
2904+
}
28972905
$preparedAttributes[$code] .= $this->getMultipleValueSeparator() . $attributeData;
28982906
continue;
28992907
}

0 commit comments

Comments
 (0)