Skip to content

Commit

Permalink
Fixed use config option for 'Enable Qty Increments' filed in product …
Browse files Browse the repository at this point in the history
…import
  • Loading branch information
simpleadm committed Mar 24, 2018
1 parent fe17868 commit 1268692
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2636,7 +2636,10 @@ private function _setStockUseConfigFieldsValues($rowData)
{
$useConfigFields = [];
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 1268692

Please sign in to comment.