Bug Report #4430
Validation::check doesn't check errors added manually
| Status: | Closed | Start date: | 04/01/2011 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | Core | |||
| Target version: | v3.3.0 | |||
| Resolution: | fixed | Points: | 1 |
Description
In Validation::check, you are stoping the rules if you find an error in a field:
But you are not checking for errors that are added manually.
You should add something like:
if( ! empty($this->_errors[$field]) )
{
break;
}
just after (or maybe before) this:
if ($passed === FALSE AND $error_name !== FALSE)
{
...
}
Related issues
Associated revisions
Merge branch '3.2/develop' into 3.3/develop (fixes #4430)
History
Updated by Lorenzo Pisani 3 months ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
- Resolution set to fixed
applied here: 7ae7010e3c95d4c8277b9464dd4c90eefe6f4807