File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
app/code/Magento/CatalogImportExport/Model Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2336,6 +2336,7 @@ protected function _saveStockItem()
2336
2336
$ stockItem = $ this ->getRowExistingStockItem ($ rowData );
2337
2337
$ existingStockItemData = $ stockItem ->getData ();
2338
2338
$ row = $ this ->formatStockDataForRow ($ rowData );
2339
+ $ row ['explicit_qty ' ] = array_key_exists ('qty ' , $ rowData );
2339
2340
$ productIdsToReindex [] = $ row ['product_id ' ];
2340
2341
$ storeId = $ this ->getRowStoreId ($ rowData );
2341
2342
if (!empty (array_diff_assoc ($ row , $ existingStockItemData ))
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ public function import(array $stockData)
50
50
$ entityTable = $ stockItemResource ->getMainTable ();
51
51
try {
52
52
$ stockImportData = array_map (
53
- function ($ stockItemData ) {
54
- unset($ stockItemData ['sku ' ]);
53
+ static function ($ stockItemData ) {
54
+ unset($ stockItemData ['sku ' ], $ stockItemData [ ' explicit_qty ' ] );
55
55
return $ stockItemData ;
56
56
},
57
57
array_values ($ stockData )
You can’t perform that action at this time.
0 commit comments