From 9d7a798a4c832fa884d577304052ade4c8f5cfc9 Mon Sep 17 00:00:00 2001 From: vChabot Date: Fri, 10 Feb 2012 10:49:44 +0000 Subject: [PATCH] // little fix about adding a category git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13216 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminCategoriesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 479958daf..df1c514bd 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -426,7 +426,7 @@ class AdminCategoriesControllerCore extends AdminController 'values' => Shop::getTree() ); // remove category tree and radio button "is_root_category" if this category has the root category as parent category to avoid any conflict - if ($this->_category->id_parent == Category::getTopCategory()->id) + if ($this->_category->id_parent == Category::getTopCategory()->id && Tools::isSubmit('updatecategory')) foreach ($this->fields_form['input'] as $k => $input) if (in_array($input['name'], array('id_parent', 'is_root_category'))) unset($this->fields_form['input'][$k]);