// Fix Page header toolbar

This commit is contained in:
Jerome Nadaud
2013-09-16 17:05:27 +02:00
parent 7643a45d81
commit 235af94a92
5 changed files with 60 additions and 20 deletions
@@ -32,6 +32,7 @@ class AdminAccessControllerCore extends AdminController
public function __construct()
{
$this->bootstrap = true;
$this->show_toolbar = false;
$this->table = 'access';
$this->className = 'Profile';
$this->multishop_context = Shop::CONTEXT_ALL;
@@ -44,6 +45,12 @@ class AdminAccessControllerCore extends AdminController
parent::__construct();
}
public function initPageHeaderToolbar()
{
$this->page_header_toolbar_title = $this->l('Permissions');
parent::initPageHeaderToolbar();
}
/**
* AdminController::renderForm() override
* @see AdminController::renderForm()
@@ -118,6 +125,8 @@ class AdminAccessControllerCore extends AdminController
if (!$this->loadObject(true))
return;
$this->initPageHeaderToolbar();
$this->content .= $this->renderForm();
$this->context->smarty->assign(array(
'content' => $this->content,