If you unpublish a node that has a webform entity form attached to it, all submission data associated with that form will be deleted. All rows from webform_submissions, webform_submitted_data, and all field_data_* fields are wiped of their data.
Update:
With a bit more testing, it looks like anytime you save the parent node of webform entity, the webform submitted data is wiped out.
Mikes's patch below does indeed fix this immediate issue. The other issue is what is the hook_node_presave trying to accomplish and why does the hook_node_save not produce the same results?
Comments
Comment #1
MChittenden commentedPatch attached.
For what it's worth this affects the multistep branch.
Comment #2
desmondmorris commentedComment #3
aaronschachter commentedThere is also a webform_entity_node_save() function, which executes the same exact code found in webform_entity_node_presave():
Comment #3.0
desmondmorris commentedUpdate based on a bit more testing
Comment #4
tizzo commentedWe'd need Jody Lynn to weigh in on this, I haven't worked on the multistep branch.
Comment #5
aaronbaumanAre people still having this issue?
I cannot reproduce