// fix AdminRequestSqlController add action
This commit is contained in:
@@ -145,6 +145,10 @@ class AdminRequestSqlControllerCore extends AdminController
|
||||
');
|
||||
|
||||
$smarty = $this->context->smarty;
|
||||
|
||||
if ($this->display != 'edit' && $this->display != 'add')
|
||||
$this->display = 'list';
|
||||
|
||||
switch ($this->display)
|
||||
{
|
||||
case 'edit':
|
||||
@@ -162,10 +166,6 @@ class AdminRequestSqlControllerCore extends AdminController
|
||||
|
||||
$smarty->assign('view', $this->viewRequestSql());
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->display = 'list';
|
||||
break;
|
||||
}
|
||||
|
||||
parent::initContent();
|
||||
|
||||
Reference in New Issue
Block a user