[*] BO: add a save and stay button in CMS edit page
This button was missing to edit easily CMS pages.
This commit is contained in:
1 parent
f015d37682
commit
0263e3b28d
1 file changed
+7
@@ -73,6 +73,11 @@ class AdminCmsControllerCore extends AdminController
|
||||
'href' => '#',
|
||||
'desc' => $this->l('Save and preview')
|
||||
);
|
||||
$this->toolbar_btn['save-and-stay'] = array(
|
||||
'short' => 'SaveAndStay',
|
||||
'href' => '#',
|
||||
'desc' => $this->l('Save and stay'),
|
||||
);
|
||||
$this->initToolbar();
|
||||
if (!$this->loadObject(true))
|
||||
return;
|
||||
@@ -325,6 +330,8 @@ class AdminCmsControllerCore extends AdminController
|
||||
}
|
||||
Tools::redirectAdmin($preview_url);
|
||||
}
|
||||
elseif (Tools::isSubmit('submitAdd'.$this->table.'AndStay'))
|
||||
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'='.$object->id.'&conf=4&update'.$this->table.'&token='.$this->token;
|
||||
else
|
||||
Tools::redirectAdmin(self::$currentIndex.'&id_cms_category='.$cms->id_cms_category.'&conf=4&token='.Tools::getAdminTokenLite('AdminCmsContent'));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user