// Fix product quantities in mono shop #PSCFV-2118

This commit is contained in:
rMalie
2012-04-27 14:30:44 +00:00
parent 250335adfb
commit 102d1aee3f
@@ -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)