Skip to content

Commit 9c9ac11

Browse files
denteblugelanivishal
authored andcommitted
during product import, use correct error message for duplicate error key
1 parent aa4b734 commit 9c9ac11

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2675,7 +2675,8 @@ protected function checkUrlKeyDuplicates()
26752675
);
26762676
foreach ($urlKeyDuplicates as $entityData) {
26772677
$rowNum = $this->rowNumbers[$entityData['store_id']][$entityData['request_path']];
2678-
$this->addRowError(ValidatorInterface::ERROR_DUPLICATE_URL_KEY, $rowNum);
2678+
$message = sprintf($this->retrieveMessageTemplate(ValidatorInterface::ERROR_DUPLICATE_URL_KEY), $entityData['request_path'], $entityData['sku']);
2679+
$this->addRowError(ValidatorInterface::ERROR_DUPLICATE_URL_KEY, $rowNum, 'url_key', $message);
26792680
}
26802681
}
26812682
}

0 commit comments

Comments
 (0)