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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16295 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-07-10 07:11:16 +00:00
parent e8b686d928
commit 744a221075
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();
}