// Add a multishop restriction on address in BO #PSTEST-1035
This commit is contained in:
@@ -689,12 +689,7 @@ class ShopCore extends ObjectModel
|
||||
if ($alias)
|
||||
$alias .= '.';
|
||||
|
||||
$restriction = '';
|
||||
if (Shop::getContext() != Shop::CONTEXT_ALL)
|
||||
$restriction = ' AND '.$alias.'id_shop IN ('.implode(', ', Shop::getContextListShopID($share)).') ';
|
||||
//else if ($share == Shop::SHARE_STOCK)
|
||||
// $restriction = ' AND '.$alias.'id_shop = '.$this->getID(true);
|
||||
|
||||
$restriction = ' AND '.$alias.'id_shop IN ('.implode(', ', Shop::getContextListShopID($share)).') ';
|
||||
return $restriction;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user