Closed (fixed)
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2024 at 09:06 UTC
Updated:
26 Sep 2025 at 13:54 UTC
Jump to comment: Most recent
If these specific purge settings are used, submissions can be purged immediately after submission.
Completed submissions onlyNow a user performs this submission flow:
purge_days valueNow the submission is immediately deleted when cron runs. This is because the created column is used when querying submissions to purge.
https://git.drupalcode.org/project/webform/-/blob/6.2.x/src/WebformSubmi...
Update the purge logic so that for Completed submissions, the query instead looks at the submitted timestamp. Draft submissions should still query the created timestamp.
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:
Comments
Comment #2
jrockowitz commentedComment #3
jrockowitz commentedThe MR is POC. Let's see if any tests break.
Comment #6
jrockowitz commentedMoving to RTBC since all the tests should now be passing
Comment #7
liam morlandTests are not passing.
Comment #8
jrockowitz commentedI forgot to push a single commit for that one test. I am going to optimistic and move this back to RTBC.
Comment #10
jrockowitz commented