Fixed: The add new button disappear display type is not empty
This commit is contained in:
@@ -310,7 +310,7 @@ class AdminRequestSqlControllerCore extends AdminController
|
||||
|
||||
public function initPageHeaderToolbar()
|
||||
{
|
||||
if (empty($this->display)) {
|
||||
if ($this->display != 'edit' && $this->display != 'add' && $this->display !='view') {
|
||||
$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),
|
||||
|
||||
Reference in New Issue
Block a user