// small fix

This commit is contained in:
rGaillard committed 2013-12-06 17:31:09 +01:00
1 parent 95d5e9d819
commit adf158a0c3
1 file changed
+2 -2
+2 -2
View File
@@ -154,8 +154,8 @@ class CategoryCore extends ObjectModel
if (!isset($this->level_depth)) if (!isset($this->level_depth))
$this->level_depth = $this->calcLevelDepth(); $this->level_depth = $this->calcLevelDepth();
if ($this->is_root_category) if ($this->is_root_category && ($id_root_category = (int)Configuration::get('PS_ROOT_CATEGORY')))
$this->id_parent = (int)Configuration::get('PS_ROOT_CATEGORY'); $this->id_parent = $id_root_category;
$ret = parent::add($autodate, $null_values); $ret = parent::add($autodate, $null_values);
if (Tools::isSubmit('checkBoxShopAsso_category')) if (Tools::isSubmit('checkBoxShopAsso_category'))