// fix bug in bulk_actions of type "delete" in AdminController's

This commit is contained in:
lLefevre
2011-11-30 15:24:50 +00:00
parent f2e81e4dc9
commit c97ee6e2f9
17 changed files with 30 additions and 53 deletions
@@ -132,8 +132,6 @@ class AdminManufacturersControllerCore extends AdminController
$this->addRowAction('editaddresses');
$this->addRowAction('delete');
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
// test if a filter is applied for this list
if (Tools::isSubmit('submitFilter'.$this->table) || $this->context->cookie->{'submitFilter'.$this->table} !== false)
$this->filter = true;
@@ -660,20 +658,6 @@ class AdminManufacturersControllerCore extends AdminController
$this->action = 'save';
else if (Tools::isSubmit('deleteaddress'))
$this->action = 'delete';
else if (is_array($this->bulk_actions))
{
foreach ($this->bulk_actions as $bulk_action => $params)
{
if (Tools::isSubmit('submitBulk'.$bulk_action.$this->table))
{
$this->action = 'bulk'.$bulk_action;
$this->boxes = Tools::getValue($this->table.'Box');
break;
}
}
if ($this->ajax && method_exists($this, 'ajaxPreprocess'))
$this->ajaxPreProcess();
}
}
public function postProcess()