// 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
This commit is contained in:
vChabot
2012-02-15 13:55:40 +00:00
parent 0e84d28ce4
commit 299e6e9eb3
@@ -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()