From defcb25997791a81ede0165e5f3bf610e33a6de0 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 22 May 2012 09:49:54 +0000 Subject: [PATCH] [-] BO : fix #PSCFV-2517 : Import combinaison, now the minimal quantity is not the quantity in ps_product_attribute git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15605 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminImportController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 95ba9ea1d..cedf1add9 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -1512,6 +1512,8 @@ class AdminImportControllerCore extends AdminController else $id_shop_list[] = $shop; + $info['minimal_quantity'] = isset($info['minimal_quantity']) && $info['minimal_quantity'] ? (int)$info['minimal_quantity'] : 1; + // if a reference is specified for this product, get the associate id_product_attribute to UPDATE if (isset($info['reference']) && !empty($info['reference'])) { @@ -1539,7 +1541,7 @@ class AdminImportControllerCore extends AdminController (int)$info['default_on'], 0, strval($info['upc']), - (int)$info['quantity'], + (int)$info['minimal_quantity'], 0, null, $id_shop_list @@ -1565,7 +1567,7 @@ class AdminImportControllerCore extends AdminController (int)$info['default_on'], 0, strval($info['upc']), - (int)$info['quantity'], + (int)$info['minimal_quantity'], $id_shop_list ); }