[-] BO : BugFix : #PSTEST-1058 : Adding Save And Stay button to the customer group interface

This commit is contained in:
vChabot
2012-03-22 10:45:59 +00:00
parent 2e28cf14a3
commit 26287fbc63
2 changed files with 14 additions and 1 deletions
@@ -100,6 +100,18 @@ class AdminGroupsControllerCore extends AdminController
$this->addJqueryUi('ui.sortable');
}
public function initToolbar()
{
if ($this->display == 'add' || $this->display == 'edit')
$this->toolbar_btn['save-and-stay'] = array(
'short' => 'SaveAndStay',
'href' => '#',
'desc' => $this->l('Save then add a category reduction'),
'force_desc' => true,
);
parent::initToolbar();
}
public function initProcess()
{
$this->id_object = Tools::getValue('id_'.$this->table);