// 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:
1 parent
8cc0c3e7a8
commit
0075d6f1ea
1 file changed
+4
-4
@@ -145,6 +145,10 @@ class AdminRequestSqlControllerCore extends AdminController
|
|||||||
');
|
');
|
||||||
|
|
||||||
$smarty = $this->context->smarty;
|
$smarty = $this->context->smarty;
|
||||||
|
|
||||||
|
if ($this->display != 'edit' && $this->display != 'add')
|
||||||
|
$this->display = 'list';
|
||||||
|
|
||||||
switch ($this->display)
|
switch ($this->display)
|
||||||
{
|
{
|
||||||
case 'edit':
|
case 'edit':
|
||||||
@@ -162,10 +166,6 @@ class AdminRequestSqlControllerCore extends AdminController
|
|||||||
|
|
||||||
$smarty->assign('view', $this->viewRequestSql());
|
$smarty->assign('view', $this->viewRequestSql());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
$this->display = 'list';
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
parent::initContent();
|
parent::initContent();
|
||||||
|
|||||||
Reference in new issue
Block a user