File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
namespace Magento \CatalogImportExport \Model \Import ;
10
10
11
+ use Magento \CatalogInventory \Api \Data \StockItemInterface ;
11
12
use Magento \Framework \App \Filesystem \DirectoryList ;
12
13
use Magento \CatalogImportExport \Model \Import \Product \RowValidatorInterface as ValidatorInterface ;
13
14
use Magento \Framework \Model \ResourceModel \Db \TransactionManagerInterface ;
@@ -2549,7 +2550,10 @@ private function _setStockUseConfigFieldsValues($rowData)
2549
2550
{
2550
2551
$ useConfigFields = array ();
2551
2552
foreach ($ rowData as $ key => $ value ) {
2552
- $ useConfigName = self ::INVENTORY_USE_CONFIG_PREFIX . $ key ;
2553
+ $ useConfigName = $ key === StockItemInterface::ENABLE_QTY_INCREMENTS
2554
+ ? StockItemInterface::USE_CONFIG_ENABLE_QTY_INC
2555
+ : self ::INVENTORY_USE_CONFIG_PREFIX . $ key ;
2556
+
2553
2557
if (isset ($ this ->defaultStockData [$ key ])
2554
2558
&& isset ($ this ->defaultStockData [$ useConfigName ])
2555
2559
&& !empty ($ value )
You can’t perform that action at this time.
0 commit comments