// fix bug in bulk_actions of type "delete" in AdminController's
This commit is contained in:
@@ -58,6 +58,8 @@ class AdminFeaturesControllerCore extends AdminController
|
||||
)
|
||||
);
|
||||
|
||||
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
@@ -71,8 +73,6 @@ class AdminFeaturesControllerCore extends AdminController
|
||||
$this->addRowAction('delete');
|
||||
$this->addRowAction('details');
|
||||
|
||||
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
||||
|
||||
// Added specific button in toolbar
|
||||
$this->toolbar_btn['newAttributes'] = array(
|
||||
'href' => self::$currentIndex.'&addfeature_value&token='.$this->token,
|
||||
@@ -108,8 +108,6 @@ class AdminFeaturesControllerCore extends AdminController
|
||||
$this->addRowAction('edit');
|
||||
$this->addRowAction('delete');
|
||||
|
||||
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
|
||||
|
||||
if (!Validate::isLoadedObject($obj = new FeatureValue((int)$id)))
|
||||
$this->_errors[] = Tools::displayError('An error occurred while updating status for object.').' <b>'.$this->table.'</b> '.Tools::displayError('(cannot load object)');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user