Skip to content

issue with displaying validation errors when there are multiple forms on the same page #237

Description

@jchouix

Hey,
I'm having trouble displaying validation errors after a form submission when there are multiple forms on the same page. The validation errors are no longer displayed because the variable $_SESSION['form_submission_errors'] is cleared before it can be used for displaying validation errors..
The problem comes from line 293 of the form_close() function in the form.php file located in the modules/form/ directory.

// unset($_SESSION['form_submission_errors']);
This code on line 293 clears this variable $_SESSION['form_submission_errors'].

I don't think this line of code is necessary (but I could be wrong) because the validation_errors() function clears this variable $_SESSION['form_submission_errors'] after the errors are displayed.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions