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

[eluser]TheFuzzy0ne[/eluser]
Thanks, Chad. I think you're right. continue makes much more sense than return.

Gary, you're right. Validation rules do run in succession, but it shouldn't stop processing the rules unless one fails. Smile Also, I'm not sure if you were joking or being serious (can never tell one from t'other with you), but if no constructor is provided, the parent constructor is called automatically. You only need to add a constructor if you want to extend it.

This behaviour is only triggered when you call a custom callback. As a quick and dirty workaround, I've modified my custom callback to purify the data too, so in this case, it doesn't matter about any following rules, since I've put them all before my callback, and the purifying is the last thing that happens.

Thanks for the replies everyone. Should I report this as a bug?


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