// fix root categories addition
This commit is contained in:
1 parent
65c6d86e6e
commit
600b027efd
1 file changed
+1
-1
@@ -557,7 +557,7 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
$id_parent = (int)Tools::getValue('id_parent');
|
$id_parent = (int)Tools::getValue('id_parent');
|
||||||
|
|
||||||
// if true, we are in a root category creation
|
// if true, we are in a root category creation
|
||||||
if (!$id_parent && !Tools::isSubmit('is_root_category'))
|
if (!$id_parent)
|
||||||
{
|
{
|
||||||
$_POST['is_root_category'] = $_POST['level_depth'] = 1;
|
$_POST['is_root_category'] = $_POST['level_depth'] = 1;
|
||||||
$_POST['id_parent'] = $id_parent = (int)Configuration::get('PS_ROOT_CATEGORY');
|
$_POST['id_parent'] = $id_parent = (int)Configuration::get('PS_ROOT_CATEGORY');
|
||||||
|
|||||||
Reference in new issue
Block a user