//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
This commit is contained in:
vAugagneur
2011-11-17 07:54:14 +00:00
parent 710605dd2a
commit 6299e72833
+2
View File
@@ -481,6 +481,8 @@ class AdminControllerCore extends Controller
' <b>'.$this->table.'</b><br />'.
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)