Issue #3073426: Encrypt the data when a submission is resaved

WebformSubmissionStorage::resave() skips doPreSave() and doPostSave(), so values set by handlers that resave the submission (such as the Action and Remote post handlers) were stored unencrypted.

Encrypt the data in resave() as well, and put the plain data back afterwards, also when the save fails, so it is never encrypted twice.

By: lammensj By: manuelgarcia By: nielsdefeyter By: seanB By: tinny By: svendecabooter

Closes #3073426 (closed)

AI assistance disclosure: this merge request was drafted with AI assistance, but was reviewed and verified by the author.

Edited by Sven Decabooter

Merge request reports

Loading
Loading