[-] 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:
mDeflotte
2012-02-17 12:00:12 +00:00
parent 5cce9a9d22
commit c9bcaec32b

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;
}