// Fix Page header toolbar
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user