validateWebformSubmission triggers formSubmit on webform handlers

Created on 25 September 2022, about 2 years ago
Updated 6 October 2023, about 1 year ago

Problem/Motivation

Validating the webform with Drupal\webform\WebformSubmissionForm::validateWebformSubmission triggers the submitForm method on webform handlers if the form is valid.

The function public static function submitWebformSubmission(WebformSubmissionInterface $webform_submission, $validate_only = FALSE) calls \Drupal::formBuilder()->submitForm($form_object, $form_state); this invokes the webform handlers even if the $validate_only is set to TRUE

🐛 Bug report
Status

Needs work

Version

6.2

Component

Code

Created by

🇲🇩Moldova Dinu Rodnitchi

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024