Skip to content

Commit 4fbbcf1

Browse files
committed
Do not call deprecated code
1 parent 39542fd commit 4fbbcf1

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
@@ -1123,14 +1123,15 @@ protected function _replaceProducts()
11231123
* Save products data.
11241124
*
11251125
* @return $this
1126+
* @throws LocalizedException
11261127
*/
11271128
protected function _saveProductsData()
11281129
{
11291130
$this->_saveProducts();
11301131
foreach ($this->_productTypeModels as $productTypeModel) {
11311132
$productTypeModel->saveData();
11321133
}
1133-
$this->_saveLinks();
1134+
$this->linkProcessor->saveLinks($this, $this->_dataSourceModel, $this->getProductEntityLinkField());
11341135
$this->_saveStockItem();
11351136
if ($this->_replaceFlag) {
11361137
$this->getOptionEntity()->clearProductsSkuToId();

0 commit comments

Comments
 (0)