[-] BO : fixed bug #PSCFV-7871 - bad breadcrumb when create a new CMS
This commit is contained in:
@@ -68,7 +68,7 @@ class AdminCmsControllerCore extends AdminController
|
|||||||
|
|
||||||
public function renderForm()
|
public function renderForm()
|
||||||
{
|
{
|
||||||
$this->display = 'edit';
|
|
||||||
$this->toolbar_btn['save-and-preview'] = array(
|
$this->toolbar_btn['save-and-preview'] = array(
|
||||||
'href' => '#',
|
'href' => '#',
|
||||||
'desc' => $this->l('Save and preview')
|
'desc' => $this->l('Save and preview')
|
||||||
@@ -81,7 +81,12 @@ class AdminCmsControllerCore extends AdminController
|
|||||||
$this->initToolbar();
|
$this->initToolbar();
|
||||||
if (!$this->loadObject(true))
|
if (!$this->loadObject(true))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (Validate::isLoadedObject($this->object))
|
||||||
|
$this->display = 'edit';
|
||||||
|
else
|
||||||
|
$this->display = 'add';
|
||||||
|
|
||||||
$categories = CMSCategory::getCategories($this->context->language->id, false);
|
$categories = CMSCategory::getCategories($this->context->language->id, false);
|
||||||
$html_categories = CMSCategory::recurseCMSCategory($categories, $categories[0][1], 1, $this->getFieldValue($this->object, 'id_cms_category'), 1);
|
$html_categories = CMSCategory::recurseCMSCategory($categories, $categories[0][1], 1, $this->getFieldValue($this->object, 'id_cms_category'), 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user