[-] BO: Fix root category should anyway be imported in shop creation #PSCFV-5885
This commit is contained in:
1 parent
b2f01058a8
commit
7cd629b15b
3 files changed
+19
-8
No files matched your search
@@ -179,7 +179,7 @@ class ShopCore extends ObjectModel
|
||||
'supplier' => array('type' => 'shop'),
|
||||
);
|
||||
|
||||
foreach($asso_tables as $table_name => $table_details)
|
||||
foreach ($asso_tables as $table_name => $table_details)
|
||||
Shop::addTableAssociation($table_name, $table_details);
|
||||
|
||||
Shop::$initialized = true;
|
||||
@@ -975,6 +975,10 @@ class ShopCore extends ObjectModel
|
||||
{
|
||||
// If we duplicate some specific data, automatically duplicate other data linked to the first
|
||||
// E.g. if carriers are duplicated for the shop, duplicate carriers langs too
|
||||
|
||||
if (!$old_id)
|
||||
$old_id = Configuration::get('PS_SHOP_DEFAULT');
|
||||
|
||||
if (isset($tables_import['carrier']))
|
||||
{
|
||||
$tables_import['carrier_tax_rules_group_shop'] = true;
|
||||
|
||||
Reference in new issue
Block a user