Form not transmitted to ValidatePaneForm

Created on 25 March 2023, over 1 year ago
Updated 5 January 2024, 10 months ago

If terms_and_conditions checkbox not checked, form is not transmitted to ValidatePaneForm

In Drupal 9.5.5.

If you try to finish your order without checking terms_and_conditions checkbox, nothing appends : no error message.

Steps to reproduce

You just have to try to validate order without checking terms_and_conditions checkbox.

Proposed resolution

In BuildPaneForm function, $pane_form['terms_and_conditions'] should not have "#required" parameter defined on TRUE because it prevents form to be passed to ValidatePaneForm function.

"#required" parameter should be defined on FALSE so that form is transmitted and validatePaneForm can be executed.

πŸ“Œ Task
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France alexdezark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024