From 82e4432901f951447da126c336acb62a77a88953 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 --- 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; }