[-] BO : BugFix : #PSTEST-807 : stay on the form when an error occured

This commit is contained in:
mDeflotte
2012-02-17 12:00:12 +00:00
parent d8f8572db0
commit 82e4432901
+5 -1
View File
@@ -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;
}