Skip to content

Commit

Permalink
Merge pull request #4925 from maidmaid/develop
Browse files Browse the repository at this point in the history
Allow import combination with a quantity of 0
  • Loading branch information
aleeks committed Sep 23, 2016
2 parents 22de7c2 + beafd6a commit 2e670b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/admin/AdminImportController.php
Expand Up @@ -2734,7 +2734,7 @@ protected function attributeImportOne($info, $default_language, &$groups, &$attr
}

// This code allows us to set qty and disable depends on stock
if (isset($info['quantity']) && (int)$info['quantity']) {
if (isset($info['quantity'])) {
// if depends on stock and quantity, add quantity to stock
if ($info['depends_on_stock'] == 1) {
$stock_manager = StockManagerFactory::getManager();
Expand Down

0 comments on commit 2e670b4

Please sign in to comment.