From 6299e72833de537cb20f33f4cdd51377c8490542 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Thu, 17 Nov 2011 07:54:14 +0000 Subject: [PATCH] //added condition in processDelete to check list_skip_actions array git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10190 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/AdminController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/AdminController.php b/classes/AdminController.php index dc4b47572..badab17da 100644 --- a/classes/AdminController.php +++ b/classes/AdminController.php @@ -481,6 +481,8 @@ class AdminControllerCore extends Controller ' '.$this->table.'
'. Tools::displayError('You cannot delete all of the items.'); } + else if (array_key_exists('delete', $this->list_skip_actions) AND in_array($object->id, $this->list_skip_actions['delete'])) //check if some ids are in list_skip_actions and forbid deletion + $this->_errors[] = Tools::displayError('You cannot delete this items.'); else { if ($this->deleted)