From d48ca7577282dffda40d0aae5dd436754d48c481 Mon Sep 17 00:00:00 2001 From: fGaillard Date: Mon, 30 Apr 2012 12:12:56 +0000 Subject: [PATCH] [-] MO : #PSCFV-1261 : Bug fix on CMS block delete action git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14975 b9a71923-0436-4b27-9f14-aed3839534dd --- 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);