Skip to content

Commit ead41d9

Browse files
committed
Backport of PR 14352 for Magento 2.1: Fixed use config option for 'Enable Qty Increments' filed in product import
1 parent 08648cb commit ead41d9

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
@@ -2549,7 +2549,10 @@ private function _setStockUseConfigFieldsValues($rowData)
25492549
{
25502550
$useConfigFields = array();
25512551
foreach ($rowData as $key => $value) {
2552-
$useConfigName = self::INVENTORY_USE_CONFIG_PREFIX . $key;
2552+
$useConfigName = $key === 'enable_qty_increments'
2553+
? 'use_config_enable_qty_inc'
2554+
: self::INVENTORY_USE_CONFIG_PREFIX . $key;
2555+
25532556
if (isset($this->defaultStockData[$key])
25542557
&& isset($this->defaultStockData[$useConfigName])
25552558
&& !empty($value)

0 commit comments

Comments
 (0)