File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +3
-2
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,8 +2550,8 @@ private function _setStockUseConfigFieldsValues($rowData)
2549
2550
{
2550
2551
$ useConfigFields = array ();
2551
2552
foreach ($ rowData as $ key => $ value ) {
2552
- $ useConfigName = $ key === ' enable_qty_increments '
2553
- ? ' use_config_enable_qty_inc '
2553
+ $ useConfigName = $ key === StockItemInterface:: ENABLE_QTY_INCREMENTS
2554
+ ? StockItemInterface:: USE_CONFIG_ENABLE_QTY_INC
2554
2555
: self ::INVENTORY_USE_CONFIG_PREFIX . $ key ;
2555
2556
2556
2557
if (isset ($ this ->defaultStockData [$ key ])
You can’t perform that action at this time.
0 commit comments