// category import improved

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13694 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-02-28 14:31:15 +00:00
parent bf96152f75
commit 6b9a9c7f9d

View File

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