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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13193 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte committed 2012-02-09 17:02:07 +00:00
1 parent 7c51ccaf88
commit 5de6e9e268
1 file changed
+24
@@ -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 */