From 6a97bdbb7b01dde4b4254d3c628dfbccdda09b18 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Fri, 15 Feb 2013 11:33:00 +0100 Subject: [PATCH] [-] BO : fixed bug #PSCFV-7551 - wrong breadcrumb when create root category --- controllers/admin/AdminCategoriesController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.');