Skip to content
Snippets Groups Projects
Commit fb5627dc authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-6446 Remove 'Site email address' from Other under 'Reply-to email'

parent e25e1ef9
No related branches found
No related tags found
1 merge request!360ISTWCMS-6446 Prevent people from using [site:email] for webform email handlers
......@@ -730,6 +730,8 @@ function uw_cfg_common_form_webform_handler_form_alter(array &$form, FormStateIn
// BCC email: Set 'Webform author email address' as default.
$form['settings']['to']['bcc_mail']['bcc_mail']['#default_value'] = "[webform:author:mail]";
// Reply-to email: remove 'Site email address' option under Other.
array_shift($form['settings']['reply_to']['reply_to']['reply_to']['#options']['Other']);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment