Skip to content

Commit adb9763

Browse files
author
Mastiuhin Olexandr
committed
MAGETWO-95313: [2.3] Missing URL Keys upon product import
1 parent 9b2aeaa commit adb9763

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,10 +1641,10 @@ protected function _saveProducts()
16411641
$rowScope = $this->getRowScope($rowData);
16421642

16431643
$urlKey = $this->getUrlKey($rowData);
1644-
if (!empty($rowData[self::URL_KEY])) {
1644+
if (!empty($rowData[self::URL_KEY])) {
16451645
// If url_key column and its value were in the CSV file
16461646
$rowData[self::URL_KEY] = $urlKey;
1647-
} else if($this->isNeedToChangeUrlKey($rowData)) {
1647+
} else if ($this->isNeedToChangeUrlKey($rowData)) {
16481648
// If url_key column was empty or even not declared in the CSV file but by the rules it is need to
16491649
// be setteed. In case when url_key is generating from name column we have to ensure that the bunch
16501650
// of products will pass for the event with url_key column.
@@ -2900,7 +2900,6 @@ protected function getResource()
29002900

29012901
/**
29022902
* Whether a url key is needed to be change.
2903-
* Returns false if
29042903
*
29052904
* @param array $rowData
29062905
* @return bool

0 commit comments

Comments
 (0)