Issue #3605006: Keep the stored value when a placeholder is saved

A user without 'view encrypted values' loads a submission with [Value Encrypted] instead of the plain text, and a failed decryption gives [Error Decrypting Value]. Saving the submission again, for example from the notes form, encrypted that placeholder over the stored value.

When an encrypted element of an existing submission still holds a placeholder on save, keep the stored value instead. The stored values are read with the parent loadData(), so composite and multiple elements map the same way as on load.

Closes #3605006 (closed)

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

Merge request reports

Loading
Loading