From 2f195ce87f3b1506d9fb83a51bd0fdbab1ea74c8 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 18 May 2012 14:33:09 +0000 Subject: [PATCH] // Fix product stocks on multishop --- controllers/admin/AdminProductsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 741d8aa04..aa0eef8fa 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -3470,7 +3470,7 @@ class AdminProductsControllerCore extends AdminController $show_quantities = true; $shop_context = Shop::getContext(); - $shop_group = $this->context->shop->getGroup(); + $shop_group = new ShopGroup((int)Shop::getContextShopGroupID()); // if we are in all shops context, it's not possible to manage quantities at this level if (Shop::isFeatureActive() && $shop_context == Shop::CONTEXT_ALL) @@ -4002,4 +4002,4 @@ class AdminProductsControllerCore extends AdminController } } } -} \ No newline at end of file +}