From 0075d6f1eac512467eaed0b10a994096304181bf Mon Sep 17 00:00:00 2001 From: lLefevre Date: Wed, 12 Oct 2011 15:14:12 +0000 Subject: [PATCH] // fix AdminRequestSqlController add action git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9281 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminRequestSqlController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/admin/AdminRequestSqlController.php b/controllers/admin/AdminRequestSqlController.php index 73fdf6f68..8d43bfdba 100644 --- a/controllers/admin/AdminRequestSqlController.php +++ b/controllers/admin/AdminRequestSqlController.php @@ -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();