From 8dae23891a7f1781aa1b7fa2b02fa5c4fbd0967c Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Fri, 29 Nov 2013 18:08:01 +0100 Subject: [PATCH] // Remove add category on edit --- controllers/admin/AdminCategoriesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 7acdccd79..f52fcb48d 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -162,7 +162,7 @@ class AdminCategoriesControllerCore extends AdminController { parent::initPageHeaderToolbar(); - if ($this->display != 'add') + if ($this->display != 'edit' && $this->display != 'add') $this->page_header_toolbar_btn['new_category'] = array( 'href' => self::$currentIndex.'&addcategory&token='.$this->token, 'desc' => $this->l('Add new category'),