// Fix cms_block creation loop on shop addition
This commit is contained in:
1 parent
2435edc98c
commit
a964162a01
1 file changed
+1
-1
@@ -757,7 +757,7 @@ class BlockCms extends Module
|
|||||||
//get all cmd block to duplicate in new shop
|
//get all cmd block to duplicate in new shop
|
||||||
$cms_blocks = Db::getInstance()->executeS('
|
$cms_blocks = Db::getInstance()->executeS('
|
||||||
SELECT * FROM `'._DB_PREFIX_.'cms_block` cb
|
SELECT * FROM `'._DB_PREFIX_.'cms_block` cb
|
||||||
LEFT JOIN `'._DB_PREFIX_.'cms_block_shop` cbf
|
JOIN `'._DB_PREFIX_.'cms_block_shop` cbf
|
||||||
ON (cb.`id_cms_block` = cbf.`id_cms_block` AND cbf.`id_shop` = '.(int)$params['old_id_shop'].') ');
|
ON (cb.`id_cms_block` = cbf.`id_cms_block` AND cbf.`id_shop` = '.(int)$params['old_id_shop'].') ');
|
||||||
|
|
||||||
if (count($cms_blocks))
|
if (count($cms_blocks))
|
||||||
|
|||||||
Reference in new issue
Block a user