[-] BO : Fix Bug #PSTEST-694 - Replace save button by a "return to dashboard" button
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user