From fdf8ece40786d02805cb0be804988ca93a0a4e6c Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 21 May 2012 17:44:38 +0000 Subject: [PATCH] // Fix list of customers in multishop #PSCFV-2499 --- classes/shop/Shop.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index 66888884b..51ea83c40 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -703,7 +703,10 @@ class ShopCore extends ObjectModel if ($alias) $alias .= '.'; - $restriction = ' AND '.$alias.'id_shop IN ('.implode(', ', Shop::getContextListShopID($share)).') '; + if ($share == Shop::SHARE_CUSTOMER) + $restriction = ' AND '.$alias.'id_shop_group = '.(int)Shop::getContextShopGroupID(); + else + $restriction = ' AND '.$alias.'id_shop IN ('.implode(', ', Shop::getContextListShopID($share)).') '; return $restriction; }