Skip to content

setting required on missing fields causes fatal error #10

@CaptainN

Description

@CaptainN

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions