[-] 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
This commit is contained in:
@@ -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