From 27d177bd9ca8ecc5ab85f883579c22047f2fd836 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Tue, 6 Mar 2012 10:38:31 +0000 Subject: [PATCH] // Fix carriers and product tax rules group import on shop creation git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13876 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/shop/Shop.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index f7e38eb68..224f66ce6 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -95,6 +95,8 @@ class ShopCore extends ObjectModel 'webservice_account' => array('type' => 'shop'), 'warehouse' => array('type' => 'shop'), 'stock_available' => array('type' => 'fk_shop'), + 'product_tax_rules_group_shop' => array('type' => 'fk_shop'), + 'carrier_tax_rules_group_shop' => array('type' => 'fk_shop'), ); protected $webserviceParameters = array( @@ -785,6 +787,12 @@ class ShopCore extends ObjectModel public function copyShopData($old_id, $tables_import = false, $deleted = false) { + if (isset($tables_import['product'])) + $tables_import['product_tax_rules_group_shop'] = true; + + if (isset($tables_import['carrier'])) + $tables_import['carrier_tax_rules_group_shop'] = true; + foreach (Shop::getAssoTables() as $table_name => $row) { if ($tables_import && !isset($tables_import[$table_name]))