// Fix product stocks on multishop
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15380 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
66c9b52d43
commit
6223b5e939
1 file changed
+2
-2
@@ -3470,7 +3470,7 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
|
|
||||||
$show_quantities = true;
|
$show_quantities = true;
|
||||||
$shop_context = Shop::getContext();
|
$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 we are in all shops context, it's not possible to manage quantities at this level
|
||||||
if (Shop::isFeatureActive() && $shop_context == Shop::CONTEXT_ALL)
|
if (Shop::isFeatureActive() && $shop_context == Shop::CONTEXT_ALL)
|
||||||
@@ -4002,4 +4002,4 @@ class AdminProductsControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user