Problem/Motivation
Typo in method name?
I got a notice when using back ->
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Drupal\webform_validation_unique\Validate\WebformValidateConstraint' does not have a method 'formSubmitPervious' in
I'm unclear if this should be formSubmitPervious or formSubmitPrevious (which would make more sense to me!)
Seems to appear in multiple places.
grep -n -R formSubmitPervious
webform_validation/src/Validate/WebformValidateConstraint.php:435: public static function formSubmitPervious(array &$form, FormStateInterface $formState): void {
webform_validation/webform_validation.module:223: 'formSubmitPervious',
Steps to reproduce
Add Unique Validation to a multipage webform - click forward and back - you should see the notice.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | webform_validation-typo-3272850-3.patch | 1.31 KB | solideogloria |
Comments
Comment #2
liam morlandformSubmitPerviousdefinitely sounds like a typo. I would appreciate it if you would try the fix and, if it works, make a merge request.Comment #3
solideogloria commentedComment #6
liam morlandThanks for the patch.