// Fix shop association in installer with entity with delayed INSERT queries #PSFV-413

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13142 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-02-08 16:33:25 +00:00
parent f2d8c6c700
commit 40a3a6ec51
+8
View File
@@ -458,6 +458,14 @@ class InstallXmlLoader
$insert_data_lang['id_lang'] = $id_lang;
$this->delayed_inserts[$entity.'_lang'][] = array_map('pSQL', $insert_data_lang);
}
// Store INSERT queries for _shop associations
$asso_shop = Shop::getAssoTables();
if (isset($asso_shop[$entity]) && $asso_shop[$entity]['type'] == 'shop')
$this->delayed_inserts[$entity.'_shop'][] = array(
'id_shop' => 1,
'id_'.$entity => $entity_id,
);
}
}