[-] BO : BugFix : #PSTEST-807 : stay on the form when an error occured
This commit is contained in:
1 parent
5df8c9a809
commit
c5e7815019
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user