Merge pull request #1230 from vishal-singh-webkul/gli-2280
Fixed: The add new button disappears when the controller display type is not empty in admin controllers in the back-office.
This commit is contained in:
@@ -177,7 +177,7 @@ class AdminEmployeesControllerCore extends AdminController
|
||||
{
|
||||
parent::initPageHeaderToolbar();
|
||||
|
||||
if (empty($this->display)) {
|
||||
if (empty($this->display) || $this->display == 'list') {
|
||||
$this->page_header_toolbar_btn['new_employee'] = array(
|
||||
'href' => self::$currentIndex.'&addemployee&token='.$this->token,
|
||||
'desc' => $this->l('Add new employee', null, null, false),
|
||||
|
||||
@@ -823,7 +823,7 @@ class AdminImagesControllerCore extends AdminController
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
if (empty($this->display)) {
|
||||
if (empty($this->display) || $this->display == 'list') {
|
||||
$this->page_header_toolbar_btn['new_image_type'] = array(
|
||||
'href' => self::$currentIndex.'&addimage_type&token='.$this->token,
|
||||
'desc' => $this->l('Add new image type', null, null, false),
|
||||
|
||||
@@ -229,7 +229,7 @@ class AdminMetaControllerCore extends AdminController
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
if (empty($this->display)) {
|
||||
if (empty($this->display) || $this->display == 'list') {
|
||||
$this->page_header_toolbar_btn['new_meta'] = array(
|
||||
'href' => self::$currentIndex.'&addmeta&token='.$this->token,
|
||||
'desc' => $this->l('Add a new page', null, null, false),
|
||||
|
||||
@@ -310,7 +310,7 @@ class AdminRequestSqlControllerCore extends AdminController
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
if (empty($this->display)) {
|
||||
if (empty($this->display) || $this->display == 'list') {
|
||||
$this->page_header_toolbar_btn['new_request'] = array(
|
||||
'href' => self::$currentIndex.'&addrequest_sql&token='.$this->token,
|
||||
'desc' => $this->l('Add new SQL query', null, null, false),
|
||||
|
||||
@@ -242,7 +242,7 @@ class AdminSearchConfControllerCore extends AdminController
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
if (empty($this->display)) {
|
||||
if (empty($this->display) || $this->display == 'list') {
|
||||
$this->page_header_toolbar_btn['new_alias'] = array(
|
||||
'href' => self::$currentIndex.'&addalias&token='.$this->token,
|
||||
'desc' => $this->l('Add new alias', null, null, false),
|
||||
|
||||
@@ -117,7 +117,7 @@ class AdminTaxesControllerCore extends AdminController
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
if (empty($this->display)) {
|
||||
if (empty($this->display) || $this->display == 'list') {
|
||||
$this->page_header_toolbar_btn['new_tax'] = array(
|
||||
'href' => self::$currentIndex.'&addtax&token='.$this->token,
|
||||
'desc' => $this->l('Add new tax', null, null, false),
|
||||
|
||||
Reference in New Issue
Block a user