diff --git a/controllers/admin/AdminCategoriesController.php b/controllers/admin/AdminCategoriesController.php index 239cf281e..3b7bdec9b 100644 --- a/controllers/admin/AdminCategoriesController.php +++ b/controllers/admin/AdminCategoriesController.php @@ -291,7 +291,11 @@ class AdminCategoriesControllerCore extends AdminController if ($this->tabAccess['add']) { $this->action = 'add'.$this->table.'root'; - $this->display = 'edit'; + $obj = $this->loadObject(true); + if (Validate::isLoadedObject($obj)) + $this->display = 'edit'; + else + $this->display = 'add'; } else $this->errors[] = Tools::displayError('You do not have permission to edit here.');