From be606b14c79adea3de01da130163be0b2da997f0 Mon Sep 17 00:00:00 2001 From: vChabot Date: Tue, 6 Mar 2012 10:19:06 +0000 Subject: [PATCH] // little fix on admincategoriescontroller (edit button) --- controllers/admin/AdminCategoriesController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')