Bug Report #4430

Validation::check doesn't check errors added manually

Added by Lorenzo Pisani 3 months ago. Updated 3 months ago.

Status:Closed Start date:04/01/2011
Priority:High Due date:
Assignee:Lorenzo Pisani % 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

related to Kohana v3.x - Bug Report #3900: Validation::check doesn't check errors added manually v3.2.1 Closed 04/01/2011

Associated revisions

Revision 7ae7010e
Added by Lorenzo Pisani 3 months ago

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

Also available in: Atom PDF