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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14219 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-03-22 10:45:59 +00:00
parent 405e8181bc
commit 8070c7af19
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);