// Add a multishop restriction on address in BO #PSTEST-1035

This commit is contained in:
rMalie
2012-04-23 14:27:08 +00:00
parent 37b0faa7e8
commit 18afa20e63
2 changed files with 6 additions and 8 deletions
+1 -6
View File
@@ -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;
}