File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2119,6 +2119,7 @@ protected function _saveStockItem()
2119
2119
$ sku = $ rowData [self ::COL_SKU ];
2120
2120
if ($ this ->skuProcessor ->getNewSku ($ sku ) !== null ) {
2121
2121
$ row = $ this ->formatStockDataForRow ($ rowData );
2122
+ $ productIdsToReindex [] = $ row ['product_id ' ];
2122
2123
}
2123
2124
2124
2125
if (!isset ($ stockData [$ sku ])) {
@@ -2821,8 +2822,6 @@ private function formatStockDataForRow(array $rowData) :array
2821
2822
{
2822
2823
$ sku = $ rowData [self ::COL_SKU ];
2823
2824
$ row ['product_id ' ] = $ this ->skuProcessor ->getNewSku ($ sku )['entity_id ' ];
2824
- $ productIdsToReindex [] = $ row ['product_id ' ];
2825
-
2826
2825
$ row ['website_id ' ] = $ this ->stockConfiguration ->getDefaultScopeId ();
2827
2826
$ row ['stock_id ' ] = $ this ->stockRegistry ->getStock ($ row ['website_id ' ])->getStockId ();
2828
2827
You can’t perform that action at this time.
0 commit comments