Skip to content

Commit 1268692

Browse files
committed
Fixed use config option for 'Enable Qty Increments' filed in product import
1 parent fe17868 commit 1268692

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+4
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2636,7 +2636,10 @@ private function _setStockUseConfigFieldsValues($rowData)
26362636
{
26372637
$useConfigFields = [];
26382638
foreach ($rowData as $key => $value) {
2639-
$useConfigName = self::INVENTORY_USE_CONFIG_PREFIX . $key;
2639+
$useConfigName = $key === 'enable_qty_increments'
2640+
? 'use_config_enable_qty_inc'
2641+
: self::INVENTORY_USE_CONFIG_PREFIX . $key;
2642+
26402643
if (isset($this->defaultStockData[$key])
26412644
&& isset($this->defaultStockData[$useConfigName])
26422645
&& !empty($value)

0 commit comments

Comments
 (0)