bmidget/kohana-formo — Issue #164: Pass callbacks has no way of influencing check()
Author: d4rky-pl
Created: 2012-01-04 14:26:04+00:00
State: open

Pass callback is being run just after validation rules are being parsed, therefore putting any additional checking in pass callback makes no sense - they won't work because Formo will simply ignore errors passed to it at this point.

Idea: Method _run_callbacks in Validator could check whetever callback has returned true or false and if the latter, it should rerun error handling. Alternatively callbacks should be run before error handling. Didn't try the latter method but it makes more sense.