Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2014 at 21:00 UTC
Updated:
15 Mar 2015 at 20:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
liam morlandHere are two possible solutions:
One causes empty submissions to be saved. I don't think the inefficiency is a problem anymore due to changes in webform_get_submissions().
The other assigns the serial number at the same time that the sid is assigned and makes it NULL in webform_submission_create(). I suppose this means that the serial number token would be NULL on a preview page, but maybe that is OK since that token is not certain to be correct anyway.
This might also be fixable in webform_client_form_submit() by having it so that an equivalent to the "If there is no data to be saved..." return statement is called before webform_submission_create().
Comment #2
liam morlandComment #3
danchadwick commentedExcellent. I also remove the $do_update parameter, as it is no longer needed. Yeah!
Committed to 7.x-4.x and 8.x
Comment #5
danchadwick commentedComment #7
danchadwick commented