[-] BO : Fix Bug #PSTEST-694 - Replace save button by a "return to dashboard" button

This commit is contained in:
mDeflotte
2012-02-09 17:02:07 +00:00
parent 4151546437
commit dfc4c3775e
@@ -75,6 +75,30 @@ class AdminEmailsControllerCore extends AdminController
); );
} }
/**
* AdminController::initContent() override
* @see AdminController::initContent()
*/
public function initContent()
{
$this->initToolbar();
unset($this->toolbar_btn['save']);
$back = $this->context->link->getAdminLink('AdminHome');
$this->toolbar_btn['back'] = array(
'href' => $back,
'desc' => $this->l('Back to dashboard')
);
$this->content .= $this->renderOptions();
$this->context->smarty->assign(array(
'content' => $this->content,
'url_post' => self::$currentIndex.'&token='.$this->token,
));
}
public function beforeUpdateOptions() public function beforeUpdateOptions()
{ {
/* PrestaShop demo mode */ /* PrestaShop demo mode */