From b8062cbb779b522b6d8b6765c4342d54afad5b72 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 --- 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 ); }