Commit 53ec9dc2 authored by Jake Bell's avatar Jake Bell

Only apply decryption to submission edit form.

parent e8d29f77
......@@ -67,7 +67,7 @@ function webform_encrypt_form_webform_component_edit_form_alter(&$form, $form_st
*/
function webform_encrypt_form_alter(&$form, &$form_state, $form_id) {
// When we are editing a webform submission,
if (strpos($form_id, 'webform_client_form_') === 0) {
if (strpos($form_id, 'webform_client_form_') === 0 && $form['details']['sid']['#value']) {
_webform_encrypt_decrypt_nested_values($form['submitted']);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment