// category import improved
This commit is contained in:
@@ -879,7 +879,7 @@ class AdminImportControllerCore extends AdminController
|
|||||||
// If id category AND id category already in base, trying to update
|
// If id category AND id category already in base, trying to update
|
||||||
if ($category->id && $category->categoryExists($category->id) && $category->id != 1)
|
if ($category->id && $category->categoryExists($category->id) && $category->id != 1)
|
||||||
$res = $category->update();
|
$res = $category->update();
|
||||||
if ($category->id == 1)
|
if ($category->id == Configuration::get('PS_ROOT_CATEGORY'))
|
||||||
$this->errors[] = Tools::displayError('Root category cannot be modify');
|
$this->errors[] = Tools::displayError('Root category cannot be modify');
|
||||||
// If no id_category or update failed
|
// If no id_category or update failed
|
||||||
if (!$res)
|
if (!$res)
|
||||||
|
|||||||
Reference in New Issue
Block a user