diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 3026a7f50..0e980d6bc 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -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')