// little fix on admincategoriescontroller (edit button)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13873 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -221,7 +221,8 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
);
|
||||
}
|
||||
// be able to edit the Home category
|
||||
if (count(Category::getCategoriesWithoutParent()) == 1 && !Tools::isSubmit('id_category'))
|
||||
if (count(Category::getCategoriesWithoutParent()) == 1 && !Tools::isSubmit('id_category')
|
||||
&& ($this->display == 'view' || empty($this->display)))
|
||||
$this->toolbar_btn['edit'] = array(
|
||||
'href' => self::$currentIndex.'&update'.$this->table.'&id_category='.(int)$this->_category->id.'&token='.$this->token,
|
||||
'desc' => $this->l('Edit')
|
||||
|
||||
Reference in New Issue
Block a user