-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Associative arrays not handled correctly #115
Comments
Could you please elaborate a little bit? |
I created a select input with the following array: $data = ['a_1' => 'Test', 'a_2' => 'Test2']; Using the Form::IS_IN rule with this |
Why are you adding this rule? Anyway, this is correct behavior. |
I'm adding the rule, because I want to make sure nobody has altered the select options to submit an invalid value. |
@LostKobrakai That's already built-in feature of SelectBox control, you don't need to do that. |
I've noticed that the
Form::IS_IN
rule on select boxes is not handled correctly. I'd imagine being able to just put the same array I used to build up the select into the rule, but it's neither parsed to a json valid array nor flattened, so netteForms.js would be able to correctly validate the selectbox.The text was updated successfully, but these errors were encountered: