From a403dbf0376e8b0284d42d92e8da569e22d53880 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Thu, 27 Sep 2012 14:30:35 +0000 Subject: [PATCH] // Fix #PSCFV-4452 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17590 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminManufacturersController.php | 1 + controllers/admin/AdminSuppliersController.php | 1 + 2 files changed, 2 insertions(+) diff --git a/controllers/admin/AdminManufacturersController.php b/controllers/admin/AdminManufacturersController.php index f7dbd616b..2b10a83f5 100644 --- a/controllers/admin/AdminManufacturersController.php +++ b/controllers/admin/AdminManufacturersController.php @@ -574,6 +574,7 @@ class AdminManufacturersControllerCore extends AdminController for ($i = 0; $i < $total_product; $i++) { $products[$i] = new Product($products[$i]['id_product'], false, $this->context->language->id); + $products[$i]->loadStockData(); /* Build attributes combinations */ $combinations = $products[$i]->getAttributeCombinations($this->context->language->id); foreach ($combinations as $k => $combination) diff --git a/controllers/admin/AdminSuppliersController.php b/controllers/admin/AdminSuppliersController.php index bd5d6948a..322790bc3 100644 --- a/controllers/admin/AdminSuppliersController.php +++ b/controllers/admin/AdminSuppliersController.php @@ -268,6 +268,7 @@ class AdminSuppliersControllerCore extends AdminController for ($i = 0; $i < $total_product; $i++) { $products[$i] = new Product($products[$i]['id_product'], false, $this->context->language->id); + $products[$i]->loadStockData(); // Build attributes combinations $combinations = $products[$i]->getAttributeCombinations($this->context->language->id); foreach ($combinations as $k => $combination)