// little fix on admincategoriescontroller (edit button)
This commit is contained in:
@@ -221,7 +221,8 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
// be able to edit the Home category
|
// 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(
|
$this->toolbar_btn['edit'] = array(
|
||||||
'href' => self::$currentIndex.'&update'.$this->table.'&id_category='.(int)$this->_category->id.'&token='.$this->token,
|
'href' => self::$currentIndex.'&update'.$this->table.'&id_category='.(int)$this->_category->id.'&token='.$this->token,
|
||||||
'desc' => $this->l('Edit')
|
'desc' => $this->l('Edit')
|
||||||
|
|||||||
Reference in New Issue
Block a user