Welcome Guest, Not a member yet? Register   Sign In
Callback Only First One Works
#1

[eluser]Unknown[/eluser]
When I use this form validation: ...
Code:
'max_length[50]|callback__user_ldap_exists|callback__check_duplicates[1]');  // 1 is a param im sending

only the first callback works, the second is ignored

If I switch their ordering, the first one is the only one that works.
#2

[eluser]David Johansson[/eluser]
if any of the rules set for a field returns false the rest of the rules wont be analyzed.
#3

[eluser]Thorpe Obazee[/eluser]
The idea is that the field already failed a rule and will not check if it fails another.
#4

[eluser]Skuja[/eluser]
I think that data cannot be past to callback like this
Code:
_check_duplicates[1]
. Can it?
#5

[eluser]David Johansson[/eluser]
[quote author="Skuja" date="1248867578"]I think that data cannot be past to callback like this
Code:
_check_duplicates[1]
. Can it?[/quote]
it can indeed!




Theme © iAndrew 2016 - Forum software by © MyBB