// Stock performance optimization
This commit is contained in:
1 parent
e930d40482
commit
168759a383
1 file changed
+1
-1
@@ -680,7 +680,7 @@ class StockAvailableCore extends ObjectModel
|
|||||||
|
|
||||||
// if there is no $id_shop, gets the context one
|
// if there is no $id_shop, gets the context one
|
||||||
// get shop group too
|
// get shop group too
|
||||||
if ($shop === null)
|
if ($shop === null || $shop === $context->shop->id)
|
||||||
{
|
{
|
||||||
if (Shop::getContext() == Shop::CONTEXT_GROUP)
|
if (Shop::getContext() == Shop::CONTEXT_GROUP)
|
||||||
$shop_group = Shop::getContextShopGroup();
|
$shop_group = Shop::getContextShopGroup();
|
||||||
|
|||||||
Reference in new issue
Block a user