in2code-de / powermail

This is the official repository of the TYPO3 extension powermail! Powermail is a well-known, editor-friendly, powerful and easy mailform extension for TYPO3
https://in2code.de
86 stars 169 forks source link

Powermail form with ajaxSubmit enabled with confirmation page and redirect set in powermail flexform, gets submitted multiple times #960

Open psyph3r opened 6 months ago

psyph3r commented 6 months ago

On a clean TYPO3 v11.5.28 installation with Powermail v10.7.3 installed we have a single-step form with the following key settings enabled:

The above combination results in multiple submissions both in the database and outgoing emails. When we turn off any one of the above options, it behaves correctly. We have no custom JavaScript event handlers set on the form submit event or on the submit button.

This issue is very similar to the one reported by elmarputz in issue #211 in powermail v4.3.2 except there it wasn't clear if a confirmation page was involved.

mehdichaouch commented 5 months ago

Hello I experience the same bug on my side with :

If you need my help to test a patch, let me know.

Best

SZChimp commented 3 months ago

We also experience duplicate submissions and outgoing emails on our installation. Not on every submission, but it's possible to send multiple times by clicking the submit button quickly. Though, we do not use plugin.tx_powermail.settings.misc.ajaxSubmit = 1. We also have a redirect after submission set in flexform.

TYPO3 Version: 11.5.36 Powermail Version: 10.7.4