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

setting required on missing fields causes fatal error #10

Open
CaptainN opened this issue Oct 6, 2014 · 0 comments
Open

setting required on missing fields causes fatal error #10

CaptainN opened this issue Oct 6, 2014 · 0 comments

Comments

@CaptainN
Copy link
Member

CaptainN commented Oct 6, 2014

If you call set_required on a once form (such as in a validation routine) and the form element is missing, OnceForm will generate a cryptic error along the lines of "Fatal error: Call to a member function required() on a non-object in /MyForm.php on line 327".

The system should probably throw up a warning instead or a catchable error with a more descriptive message in a suitable mode.

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