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

This commit is contained in:
fBrignoli
2012-03-28 09:47:57 +00:00
parent 0c85565f83
commit e7fefc4ef2
@@ -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.');
} }
@@ -440,7 +440,7 @@ class AdminTaxRulesGroupControllerCore extends AdminController
if (Validate::isLoadedObject($tax_rule)) if (Validate::isLoadedObject($tax_rule))
$result &= $tax_rule->delete(); $result &= $tax_rule->delete();
} }
Tools::redirectAdmin(self::$currentIndex.'&'.$this->identifier.'='.(int)$tax_rule->id_tax_rules_group.'&conf=4&update'.$this->table.'&token='.$this->token); Tools::redirectAdmin(self::$currentIndex.'&'.$this->identifier.'='.(int)$tax_rule->id_tax_rules_group.'&conf=4&update'.$this->table.'&token='.$this->token);
} }
@@ -456,4 +456,3 @@ class AdminTaxRulesGroupControllerCore extends AdminController
} }
} }