//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:
1 parent
710605dd2a
commit
6299e72833
1 file changed
+2
@@ -481,6 +481,8 @@ class AdminControllerCore extends Controller
|
|||||||
' <b>'.$this->table.'</b><br />'.
|
' <b>'.$this->table.'</b><br />'.
|
||||||
Tools::displayError('You cannot delete all of the items.');
|
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
|
else
|
||||||
{
|
{
|
||||||
if ($this->deleted)
|
if ($this->deleted)
|
||||||
|
|||||||
Reference in new issue
Block a user