// Stock performance optimization

This commit is contained in:
Damien Metzger
2013-07-31 18:46:45 +02:00
parent e930d40482
commit 168759a383
+1 -1
View File
@@ -680,7 +680,7 @@ class StockAvailableCore extends ObjectModel
// if there is no $id_shop, gets the context one
// get shop group too
if ($shop === null)
if ($shop === null || $shop === $context->shop->id)
{
if (Shop::getContext() == Shop::CONTEXT_GROUP)
$shop_group = Shop::getContextShopGroup();