[-] 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:
@@ -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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user