Problem/Motivation
My sendinblue_api handler is executed while the captcha of the webform is deliberately incorrect.
Steps to reproduce
1) Create a webform with a sendinblue_api handler, add a math captcha to the webform.
2) Send a submission with wrong captcha response.
3) The webform page will be reloaded with captcha error message but...
4) The sendinblue_api handler will be executed even though the captcha was false.
Can you help me? Why my handler is executed while the captcha is incorrect?
Issue fork sendinblue_api-3476207
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- master
changes, plain diff MR !5
Comments
Comment #2
amdcm commentedComment #4
s3b0un3tHi,
The
submitContactForm()method is called both duringpostSave()and during validation if the form contains a phone field.This method ends with the creation of a contact on Brevo, which should normally only happen at
postSave().I propose a workaround so as to no longer create contact upon validation.
This is not ideal; In my opinion, the design of this part of the module will have to be reworked.
Cheers,
Comment #6
amdcm commentedHi,
Thanks for the solution!
Cheers,
Comment #8
finex commentedThanks for the MR. I've updated the code.
Comment #11
finex commented