Skip to content

Commit b291295

Browse files
author
Oleksandr Iegorov
committed
MC-21727: It is impossible to remove Related, Up-Sells and Cross-Sells products via the import procedure
1 parent 798b6c3 commit b291295

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3090,7 +3090,7 @@ function ($linkName) use ($rowData) {
30903090
foreach ($linkNameToId as $linkName => $linkId) {
30913091
$linkSkus = explode($this->getMultipleValueSeparator(), $rowData[$linkName . 'sku']);
30923092
//process empty value
3093-
if (!empty($linkSkus[0]) && $linkSkus[0] === Import::DEFAULT_EMPTY_ATTRIBUTE_VALUE_CONSTANT) {
3093+
if (!empty($linkSkus[0]) && $linkSkus[0] === $this->getEmptyAttributeValueConstant()) {
30943094
$linksToDelete[$linkId][] = $productId;
30953095
continue;
30963096
}

0 commit comments

Comments
 (0)