From 5ed0a86ad6eea10ab4337c81c914ede2505c305d Mon Sep 17 00:00:00 2001 From: rMalie Date: Fri, 27 Apr 2012 14:30:44 +0000 Subject: [PATCH] // Fix product quantities in mono shop #PSCFV-2118 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14958 b9a71923-0436-4b27-9f14-aed3839534dd --- 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 fbb3c5246..c0c64bd5a 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -3475,10 +3475,10 @@ class AdminProductsControllerCore extends AdminController $shop_group = $this->context->shop->getGroup(); // if we are in all shops context, it's not possible to manage quantities at this level - if ($shop_context == Shop::CONTEXT_ALL) + if (Shop::isFeatureActive() && $shop_context == Shop::CONTEXT_ALL) $show_quantities = false; // if we are in group shop context - elseif ($shop_context == Shop::CONTEXT_GROUP) + elseif (Shop::isFeatureActive() && $shop_context == Shop::CONTEXT_GROUP) { // if quantities are not shared between shops of the group, it's not possible to manage them at group level if (!$shop_group->share_stock)