Skip to content

Commit 2e359d1

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 769c48d commit 2e359d1

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3061,6 +3061,7 @@ private function getValidationErrorLevel($sku): string
30613061
* @param array $positionAttrId
30623062
* @return void
30633063
* @throws LocalizedException
3064+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
30643065
*/
30653066
private function processLinkBunches(
30663067
array $bunch,
@@ -3149,7 +3150,8 @@ function ($linkedSku) use ($sku) {
31493150
* @return void
31503151
* @throws LocalizedException
31513152
*/
3152-
private function deleteProductsLinks(Link $resource, array $linksToDelete) {
3153+
private function deleteProductsLinks(Link $resource, array $linksToDelete)
3154+
{
31533155
if (!empty($linksToDelete) && Import::BEHAVIOR_APPEND === $this->getBehavior()) {
31543156
foreach ($linksToDelete as $linkTypeId => $productIds) {
31553157
if (!empty($productIds)) {

0 commit comments

Comments
 (0)