Welcome Guest, Not a member yet? Register   Sign In
Possible form validation bug?
#2

[eluser]Chad Fulton[/eluser]
This appears to be neither something you missed nor a bug, but in fact expected behavior (although stupid behavior it seems to be).

Check out lines 601-605 of Form_validation.php:
Code:
// If the field isn't required and we just processed a callback we'll move on...
if ( ! in_array('required', $rules, TRUE) AND $result !== FALSE)
{
    return;
}

Apparently, if the field isn't required and a callback was processed, they finish processing right after that. Or maybe they meant to put continue instead of return, and it is a bug.

So, I suppose you could just replace that return with a continue.


Messages In This Thread
Possible form validation bug? - by El Forum - 06-29-2009, 01:15 PM
Possible form validation bug? - by El Forum - 06-29-2009, 03:15 PM
Possible form validation bug? - by El Forum - 06-29-2009, 03:23 PM
Possible form validation bug? - by El Forum - 06-29-2009, 03:59 PM
Possible form validation bug? - by El Forum - 06-29-2009, 04:26 PM
Possible form validation bug? - by El Forum - 06-29-2009, 04:28 PM
Possible form validation bug? - by El Forum - 06-29-2009, 04:45 PM
Possible form validation bug? - by El Forum - 06-29-2009, 05:46 PM
Possible form validation bug? - by El Forum - 06-29-2009, 06:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB