fix backoffice header toolbar buttons not visible on some pages

This commit is contained in:
Shreesh Arora
2023-04-04 13:15:50 +05:30
parent 2f3f616b95
commit cfe3bab2bc
3 changed files with 11 additions and 16 deletions

View File

@@ -175,6 +175,8 @@ class AdminEmployeesControllerCore extends AdminController
public function initPageHeaderToolbar()
{
parent::initPageHeaderToolbar();
if (empty($this->display)) {
$this->page_header_toolbar_btn['new_employee'] = array(
'href' => self::$currentIndex.'&addemployee&token='.$this->token,
@@ -193,8 +195,6 @@ class AdminEmployeesControllerCore extends AdminController
$this->toolbar_title);
}
}
parent::initPageHeaderToolbar();
}
public function renderList()