File tree 1 file changed +5
-1
lines changed
app/code/Magento/CatalogImportExport/Model/Import
1 file changed +5
-1
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 \CatalogImportExport \Model \StockItemImporterInterface ;
14
15
use Magento \Framework \App \Filesystem \DirectoryList ;
15
16
use Magento \Framework \App \ObjectManager ;
@@ -2618,7 +2619,10 @@ private function _setStockUseConfigFieldsValues($rowData)
2618
2619
{
2619
2620
$ useConfigFields = [];
2620
2621
foreach ($ rowData as $ key => $ value ) {
2621
- $ useConfigName = self ::INVENTORY_USE_CONFIG_PREFIX . $ key ;
2622
+ $ useConfigName = $ key === StockItemInterface::ENABLE_QTY_INCREMENTS
2623
+ ? StockItemInterface::USE_CONFIG_ENABLE_QTY_INC
2624
+ : self ::INVENTORY_USE_CONFIG_PREFIX . $ key ;
2625
+
2622
2626
if (isset ($ this ->defaultStockData [$ key ])
2623
2627
&& isset ($ this ->defaultStockData [$ useConfigName ])
2624
2628
&& !empty ($ value )
You can’t perform that action at this time.
0 commit comments