// Fixed sql error that occurred in the module duplication when you add a new shop in multishop

This commit is contained in:
dMetzger committed 2012-08-22 08:58:38 +00:00
1 parent f25e0e0d16
commit 2f1b34a4f8
2 files changed
+8 -10

No files matched your search

+4 -5
View File
@@ -657,11 +657,10 @@ class HomeSlider extends Module
public function hookActionShopDataDuplication($params)
{
Db::getInstance()->execute('
INSERT INTO '._DB_PREFIX_.'homeslider (id_homeslider_slides, id_shop)
SELECT id_homeslider_slides, '.(int)$params['new_id_shop'].'
FROM '._DB_PREFIX_.'homeslider
WHERE id_shop = '.(int)$params['old_id_shop'].'
');
INSERT IGNORE INTO '._DB_PREFIX_.'homeslider (id_homeslider_slides, id_shop)
SELECT id_homeslider_slides, '.(int)$params['new_id_shop'].'
FROM '._DB_PREFIX_.'homeslider
WHERE id_shop = '.(int)$params['old_id_shop']);
}
public function headerHTML()