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 27, 2018
1 parent 60a4372 commit 54507a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2580,7 +2580,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 54507a7

Please sign in to comment.