From 5eae3acee37af8aea9ec942681d1945d7e8ea7dd Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Mon, 25 Nov 2013 18:29:06 +0100 Subject: [PATCH] // Add new value button at attribute controller start --- controllers/admin/AdminAttributesGroupsController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/controllers/admin/AdminAttributesGroupsController.php b/controllers/admin/AdminAttributesGroupsController.php index 68c3e79a2..297b3c2b7 100644 --- a/controllers/admin/AdminAttributesGroupsController.php +++ b/controllers/admin/AdminAttributesGroupsController.php @@ -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(