// Remove add category on edit

This commit is contained in:
Jerome Nadaud
2013-11-29 18:08:01 +01:00
parent fbf2c26093
commit 8dae23891a
@@ -162,7 +162,7 @@ class AdminCategoriesControllerCore extends AdminController
{ {
parent::initPageHeaderToolbar(); parent::initPageHeaderToolbar();
if ($this->display != 'add') if ($this->display != 'edit' && $this->display != 'add')
$this->page_header_toolbar_btn['new_category'] = array( $this->page_header_toolbar_btn['new_category'] = array(
'href' => self::$currentIndex.'&addcategory&token='.$this->token, 'href' => self::$currentIndex.'&addcategory&token='.$this->token,
'desc' => $this->l('Add new category'), 'desc' => $this->l('Add new category'),