Skip to content

Commit

Permalink
Backport of PR 14352 for Magento 2.1: Fixed use config option for 'En…
Browse files Browse the repository at this point in the history
…able Qty Increments' filed in product import
  • Loading branch information
simpleadm committed Mar 27, 2018
1 parent 08648cb commit ead41d9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2549,7 +2549,10 @@ private function _setStockUseConfigFieldsValues($rowData)
{
$useConfigFields = array();
foreach ($rowData as $key => $value) {
$useConfigName = self::INVENTORY_USE_CONFIG_PREFIX . $key;
$useConfigName = $key === 'enable_qty_increments'
? 'use_config_enable_qty_inc'
: self::INVENTORY_USE_CONFIG_PREFIX . $key;

if (isset($this->defaultStockData[$key])
&& isset($this->defaultStockData[$useConfigName])
&& !empty($value)
Expand Down

0 comments on commit ead41d9

Please sign in to comment.