[-] BO : fixed bug #PSCFV-7551 - wrong breadcrumb when create root category

This commit is contained in:
vAugagneur
2013-02-15 11:33:00 +01:00
parent dfb4aedbde
commit 6a97bdbb7b
@@ -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.');