From 299e6e9eb3f2b1ff8f45160a3b641e195895d58b Mon Sep 17 00:00:00 2001 From: vChabot Date: Wed, 15 Feb 2012 13:55:40 +0000 Subject: [PATCH] // removing the "new" button on the toolbar when we are in the root category listing git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13351 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminCategoriesController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 02626beb9..63b89c1b3 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -239,6 +239,8 @@ class AdminCategoriesControllerCore extends AdminController 'desc' => $this->l('Add new') ); parent::initToolbar(); + if ($this->_category->id == Category::getTopCategory()->id && isset($this->toolbar_btn['new'])) + unset($this->toolbar_btn['new']); } public function initProcess()