Feature #57383
closed
Accidental doubleclick on save button creates two records
Added by Florian Seirer over 10 years ago.
Updated about 9 years ago.
Description
If I create a new record (doesn't matter which type) in the list module, and doubleclick the save button to save the records for the first time (!), two records are created. This happens for each click I can do before the backend finishes reloading the form.
So, 5 clicks in rapid succession mean 5 records.
Bug? Feature? Or just "Thou shalt not doubleclick in a browser"?
It doesn't even have to be rapid clicking. A slow backend can cause the same behaviour.
An idea on how to fix this could be to deactivate the save button through an onclick-event until the form is reloaded.
- Status changed from New to Needs Feedback
I'd say this is more of a feature.
- Status changed from Needs Feedback to New
I don't like the suggestion of disabling a button. What if you're on an unstable connection an the connection breaks while initiating the first request. The user will loose all entered data, as the save button is now disabled.
Much better way is to use a form token to detect multiple submits.
Maybe Helmut can say some words here.
- Tracker changed from Bug to Feature
- Target version set to 7 LTS
- Target version deleted (
7 LTS)
- Status changed from New to Closed
As far as i can see on version 7.6 it is solved , so I close this.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Also available in: Atom
PDF