From c9bcaec32b073f3b2eeca21e3fccef9d00166f13 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Fri, 17 Feb 2012 12:00:12 +0000 Subject: [PATCH] [-] BO : BugFix : #PSTEST-807 : stay on the form when an error occured git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13423 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/controller/AdminController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 61ab677c9..980d5884a 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -637,7 +637,11 @@ class AdminControllerCore extends Controller $this->errors = array_unique($this->errors); if (count($this->errors) > 0) - return; + { + // if we have errors, we stay on the form instead of moving to the list + $this->display = 'edit'; + return false; + } return $object; }