// Add new value button at attribute controller start

This commit is contained in:
Jerome Nadaud
2013-11-25 18:29:06 +01:00
parent 0d6bc850de
commit 5eae3acee3
@@ -466,11 +466,18 @@ class AdminAttributesGroupsControllerCore extends AdminController
public function initPageHeaderToolbar()
{
if (empty($this->display))
{
$this->page_header_toolbar_btn['new_attribute_group'] = array(
'href' => self::$currentIndex.'&addattribute_group&token='.$this->token,
'desc' => $this->l('Add new attribute'),
'icon' => 'process-icon-new'
);
$this->page_header_toolbar_btn['new_value'] = array(
'href' => self::$currentIndex.'&updateattribute&id_attribute_group='.(int)Tools::getValue('id_attribute_group').'&token='.$this->token,
'desc' => $this->l('Add new value'),
'icon' => 'process-icon-new'
);
}
if ($this->display == 'view')
$this->page_header_toolbar_btn['new_value'] = array(