From 6c98ff9ea8d3411ea2779ab642699d03b86e2ef5 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 4 Oct 2012 14:07:44 +0000 Subject: [PATCH] // small fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17757 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminAttributeGeneratorController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/AdminAttributeGeneratorController.php b/controllers/admin/AdminAttributeGeneratorController.php index dbbab06e5..17fed7aaf 100644 --- a/controllers/admin/AdminAttributeGeneratorController.php +++ b/controllers/admin/AdminAttributeGeneratorController.php @@ -130,6 +130,8 @@ class AdminAttributeGeneratorControllerCore extends AdminController foreach ($attributes as $attribute) StockAvailable::setQuantity($this->product->id, $attribute['id_product_attribute'], $quantity); } + else + StockAvailable::synchronize($this->product->id); Tools::redirectAdmin($this->context->link->getAdminLink('AdminProducts').'&id_product='.(int)Tools::getValue('id_product').'&addproduct&key_tab=Combinations&conf=4'); } else