Skip to content
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

Checkbox validation #2

Open
jnar opened this issue Sep 25, 2013 · 0 comments
Open

Checkbox validation #2

jnar opened this issue Sep 25, 2013 · 0 comments

Comments

@jnar
Copy link

jnar commented Sep 25, 2013

Hi, thank you for this great work im currently using form_builder and saved me lots of time creating my forms.

I made a change because i was having issues with the checkbox validation when you have only one, around line 328 changed:
set_checkbox($id . '[]', $box->id, $selected)

for:
set_checkbox($id . ((count($boxes) > 1) ? '[]' : ''), $box->id, $selected)

Just to let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant