// Changed the way the multistore associations are loaded, far from perfect, but still better and overridable

This commit is contained in:
dMetzger
2012-07-10 07:11:16 +00:00
parent fffc7b9f8f
commit 5d866c818f
5 changed files with 86 additions and 60 deletions
+3 -3
View File
@@ -1305,10 +1305,10 @@ abstract class AdminTabCore
$whereShop = Shop::addSqlRestriction($this->shopShareDatas, 'a', $this->shopLinkType);
}
$assos = Shop::getAssoTables();
if (isset($assos[$this->table]) && $assos[$this->table]['type'] == 'shop')
$asso = Shop::getAssoTable($this->table);
if ($asso !== false && $assos['type'] == 'shop')
{
$filterKey = $assos[$this->table]['type'];
$filterKey = $asso['type'];
$idenfierShop = Shop::getContextListShopID();
}