// fix AdminRequestSqlController add action
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9281 b9a71923-0436-4b27-9f14-aed3839534dd
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