[-] BO : #PSTEST-543 - Tax Rules Bulk delete doesn't work

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14319 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fBrignoli
2012-03-28 09:47:57 +00:00
parent 52f323e23c
commit 2d4f78f179
@@ -59,7 +59,7 @@ class AdminTaxRulesGroupControllerCore extends AdminController
) )
); );
$this->bulk_actions = array('delete_tax_rule' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
parent::__construct(); parent::__construct();
} }
@@ -355,10 +355,10 @@ class AdminTaxRulesGroupControllerCore extends AdminController
else else
$this->errors[] = Tools::displayError('You do not have permission to delete here.'); $this->errors[] = Tools::displayError('You do not have permission to delete here.');
} }
else if (Tools::isSubmit('submitBulkdelete_tax_rule')) else if (Tools::isSubmit('submitBulkdeletetax_rule'))
{ {
if ($this->tabAccess['delete'] === '1') if ($this->tabAccess['delete'] === '1')
$this->action = 'bulk_delete_tax_rule'; $this->action = 'bulk_delete_tax_rules';
else else
$this->errors[] = Tools::displayError('You do not have permission to delete here.'); $this->errors[] = Tools::displayError('You do not have permission to delete here.');
} }
@@ -456,4 +456,3 @@ class AdminTaxRulesGroupControllerCore extends AdminController
} }
} }