[-] BO : #PSTEST-989 - Remove button "Save and add" on form add/edit attribute group

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13955 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-03-08 09:22:04 +00:00
parent 4873c69ef8
commit 17f566896d
@@ -386,7 +386,7 @@ class AdminAttributesGroupsControllerCore extends AdminController
if ($this->display == 'add') if ($this->display == 'add')
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$token; $this->redirect_after = self::$currentIndex.'&'.$this->identifier.'=&conf=3&update'.$this->table.'&token='.$token;
else else
$this->redirect_after = self::$currentIndex.'&id_attribute_group='.(int)Tools::getValue('id_attribute_group').'&'.$this->identifier.'&conf=3&update'.$this->table.'&token='.$token; $this->redirect_after = self::$currentIndex.'&id_attribute_group='.(int)Tools::getValue('id_attribute_group').'&conf=3&update'.$this->table.'&token='.$token;
} }
if (count($this->errors)) if (count($this->errors))
@@ -469,12 +469,13 @@ class AdminAttributesGroupsControllerCore extends AdminController
'desc' => $this->l('Save') 'desc' => $this->l('Save')
); );
$this->toolbar_btn['save-and-stay'] = array( if ($this->display == 'editAttributes')
'short' => 'SaveAndStay', $this->toolbar_btn['save-and-stay'] = array(
'href' => '#', 'short' => 'SaveAndStay',
'desc' => $this->l('Save and add'), 'href' => '#',
'force_desc' => true, 'desc' => $this->l('Save and add'),
); 'force_desc' => true,
);
$back = self::$currentIndex.'&token='.$this->token; $back = self::$currentIndex.'&token='.$this->token;
$this->toolbar_btn['back'] = array( $this->toolbar_btn['back'] = array(