Skip to content

Commit

Permalink
[-] CORE : Fix #PSCSX-4801 creation multistore when copy cms page
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacha Froment committed Mar 4, 2015
1 parent 4e78a2b commit d47a35f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions classes/shop/Shop.php
Expand Up @@ -146,7 +146,9 @@ protected static function init()
'category' => array('type' => 'shop'),
'category_lang' => array('type' => 'fk_shop'),
'cms' => array('type' => 'shop'),
'cms_lang' => array('type' => 'fk_shop'),
'cms_category' => array('type' => 'shop'),
'cms_category_lang' => array('type' => 'fk_shop'),
'contact' => array('type' => 'shop'),
'country' => array('type' => 'shop'),
'currency' => array('type' => 'shop'),
Expand Down Expand Up @@ -1030,6 +1032,13 @@ public function copyShopData($old_id, $tables_import = false, $deleted = false)
$tables_import['carrier_lang'] = true;
}

if (isset($tables_import['cms']))
{
$tables_import['cms_lang'] = true;
$tables_import['cms_category'] = true;
$tables_import['cms_category_lang'] = true;
}

$tables_import['category_lang'] = true;
if (isset($tables_import['product']))
$tables_import['product_lang'] = true;
Expand Down

0 comments on commit d47a35f

Please sign in to comment.