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.
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 theform.phpfile located in themodules/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.