// Fix share customer on shops

This commit is contained in:
rMalie
2012-05-21 22:03:34 +00:00
parent 79bfb639f0
commit 324171fef0
+2 -1
View File
@@ -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)).') ';