[-] BO : fixed bug #PSCFV-7551 - wrong breadcrumb when create root category
This commit is contained in:
@@ -291,7 +291,11 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
if ($this->tabAccess['add'])
|
if ($this->tabAccess['add'])
|
||||||
{
|
{
|
||||||
$this->action = 'add'.$this->table.'root';
|
$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
|
else
|
||||||
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
$this->errors[] = Tools::displayError('You do not have permission to edit here.');
|
||||||
|
|||||||
Reference in New Issue
Block a user