From 2db3724e579d70e0053fbbfa1a7c18ae8d55579f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Gaillard?= Date: Mon, 30 Apr 2012 12:12:56 +0000 Subject: [PATCH] [-] MO : #PSCFV-1261 : Bug fix on CMS block delete action --- modules/blockcms/blockcms.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/blockcms/blockcms.php b/modules/blockcms/blockcms.php index eb6fb59d9..76031681f 100755 --- a/modules/blockcms/blockcms.php +++ b/modules/blockcms/blockcms.php @@ -603,14 +603,9 @@ class BlockCms extends Module else if (Tools::isSubmit('deleteBlockCMS') && Tools::getValue('id_cms_block')) { $id_cms_block = Tools::getvalue('id_cms_block'); - $old_block = BlockCMSModel::getBlockCMS($id_cms_block); - if (count($old_block)) + if ($id_cms_block) { - $location = $old_block[1]['location']; - $position = $old_block[1]['position']; - - BlockCMSModel::updateCMSBlockPositions($id_cms_block, $position, $position - 1, $location); BlockCMSModel::deleteCMSBlock((int)$id_cms_block); BlockCMSModel::deleteCMSBlockPage((int)$id_cms_block);