// Fix list of customers in multishop #PSCFV-2499

This commit is contained in:
rMalie committed 2012-05-21 17:44:38 +00:00
1 parent 5f25c7c735
commit a38d3626c1
1 file changed
+3
+3
View File
@@ -703,6 +703,9 @@ class ShopCore extends ObjectModel
if ($alias) if ($alias)
$alias .= '.'; $alias .= '.';
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)).') '; $restriction = ' AND '.$alias.'id_shop IN ('.implode(', ', Shop::getContextListShopID($share)).') ';
return $restriction; return $restriction;
} }