I have a webform that refuses to send e-mails. The submission is created but no emails are sent. I am bug hunting and more or less by chance visited the "Resend E-mails" for a submission,
I'll post a screenshot of it. Both e-mails are checked, but the form complains that "You must select at least one email address to resend submission" when I press the "Resend e-mails" button.
Could this bug be related to the form not sending emails? If not, it's still a bug.
As I mentioned, no e-mails are sent at submission creation. That's a different issue, but I'll start with this one, ironing out possible culprits.
Comment | File | Size | Author |
---|---|---|---|
#5 | webform_resend_button-2152409.patch | 507 bytes | quicksketch |
error-1.png | 9.72 KB | Boletus |
Comments
Comment #1
rjt1224Well this issue is a simple fix. In line 453 of the file webform/includes/webform.submissions.inc.
Just need to change the name of the submit button from
resendto "sendemail'.The issue deals with form input types name declared for the check as being overridden by the submit button in the same function "webform_submission_resend" at the end which nullifies the value on Submission of the Form.
Comment #2
jtjones23 CreditAttribution: jtjones23 commentedI can confirm that #1 worked for me. I was getting the same error message.
Comment #3
jerry CreditAttribution: jerry commentedYep, #1 worked for me as well.
Comment #4
quicksketchHuh, weird. We've had a lot of issues with these buttons recently. The proposed fix sounds good; seems like something we should do to all versions just for clarity.
Comment #5
quicksketchThanks guys, I've replaced "resend" with "submit" in all branches (though this problem seemingly only affected Drupal 6 sites). Note that 6.x-3.20 that came out today does *not* include this fix, it'll be in 3.21.
Comment #6
quicksketchComment #8
fenstratNeeds porting to 8.x-4.x.
Comment #9
fenstratCommitted and pushed bc01194 to 8.x-4.x. Thanks!