// Fix share customer on shops
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15589 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -712,7 +712,8 @@ class ShopCore extends ObjectModel
|
||||
if ($alias)
|
||||
$alias .= '.';
|
||||
|
||||
if ($share == Shop::SHARE_CUSTOMER && Shop::getContext() == Shop::CONTEXT_SHOP)
|
||||
$group = Shop::getGroupFromShop(Shop::getContextShopID(), false);
|
||||
if ($share == Shop::SHARE_CUSTOMER && Shop::getContext() == Shop::CONTEXT_SHOP && $group['share_customer'])
|
||||
$restriction = ' AND '.$alias.'id_shop_group = '.(int)Shop::getContextShopGroupID();
|
||||
else
|
||||
$restriction = ' AND '.$alias.'id_shop IN ('.implode(', ', Shop::getContextListShopID($share)).') ';
|
||||
|
||||
Reference in New Issue
Block a user