File tree 1 file changed +3
-2
lines changed
app/code/Magento/CatalogImportExport/Model/Import 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \CatalogImportExport \Model \Import \Product \MediaGalleryProcessor ;
11
11
use Magento \CatalogImportExport \Model \Import \Product \ImageTypeProcessor ;
12
12
use Magento \CatalogImportExport \Model \Import \Product \RowValidatorInterface as ValidatorInterface ;
13
+ use Magento \CatalogInventory \Api \Data \StockItemInterface ;
13
14
use Magento \Framework \App \Filesystem \DirectoryList ;
14
15
use Magento \Framework \App \ObjectManager ;
15
16
use Magento \Framework \Exception \LocalizedException ;
@@ -2636,8 +2637,8 @@ private function _setStockUseConfigFieldsValues($rowData)
2636
2637
{
2637
2638
$ useConfigFields = [];
2638
2639
foreach ($ rowData as $ key => $ value ) {
2639
- $ useConfigName = $ key === ' enable_qty_increments '
2640
- ? ' use_config_enable_qty_inc '
2640
+ $ useConfigName = $ key === StockItemInterface:: ENABLE_QTY_INCREMENTS
2641
+ ? StockItemInterface:: USE_CONFIG_ENABLE_QTY_INC
2641
2642
: self ::INVENTORY_USE_CONFIG_PREFIX . $ key ;
2642
2643
2643
2644
if (isset ($ this ->defaultStockData [$ key ])
You can’t perform that action at this time.
0 commit comments