When the feature to auto-save forms that fail validation as a draft was introduced, there was code added to create the draft and remove the form and form_state from the cache. This forces the form to be rebuilt, honoring the new draft submission's sid. Alas, there was code copied from form.inc which checks to see if the page caching is disabled before deleting the form from the cache. This check is not appropriate in the case of webform.

The symptom is lots of duplicate submissions, created in rapid succession as the user tried to submit the form with one or more validation errors.

Comments

  • DanChadwick committed daf255a on 7.x-4.x
    Issue #2342943 by DanChadwick: Fixed Duplicate drafts are created by...
  • DanChadwick committed 526ffdf on 8.x-4.x
    Issue #2342943 by DanChadwick: Fixed Duplicate drafts are created by...
danchadwick’s picture

Status: Active » Fixed
StatusFileSize
new1.08 KB

Committed to 7.x-4.x and 8.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.