// 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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user