// 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
+2 -2
View File
@@ -468,8 +468,8 @@ class InstallXmlLoader
}
// Store INSERT queries for _shop associations
$asso_shop = Shop::getAssoTables();
if (isset($asso_shop[$entity]) && $asso_shop[$entity]['type'] == 'shop')
$entity_asso = Shop::getAssoTable($entity);
if ($entity_asso !== false && $entity_asso['type'] == 'shop')
$this->delayed_inserts[$entity.'_shop'][] = array(
'id_shop' => 1,
'id_'.$entity => $entity_id,