// 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
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user