// 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
This commit is contained in:
rMalie
2012-04-27 14:30:44 +00:00
parent c6f15bf828
commit 5ed0a86ad6
@@ -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)