// removing the "new" button on the toolbar when we are in the root category listing
This commit is contained in:
1 parent
196cc811fe
commit
5522e117a8
1 file changed
+2
@@ -239,6 +239,8 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
'desc' => $this->l('Add new')
|
'desc' => $this->l('Add new')
|
||||||
);
|
);
|
||||||
parent::initToolbar();
|
parent::initToolbar();
|
||||||
|
if ($this->_category->id == Category::getTopCategory()->id && isset($this->toolbar_btn['new']))
|
||||||
|
unset($this->toolbar_btn['new']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function initProcess()
|
public function initProcess()
|
||||||
|
|||||||
Reference in new issue
Block a user