validateWebformSubmission triggers formSubmit on webform handlers

Created on 25 September 2022, about 2 years ago
Updated 10 June 2023, over 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

Active

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

Merge Requests

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