From 7f7a00fcb7b04090cd1827429df23fcd95c240a7 Mon Sep 17 00:00:00 2001 From: Lily Yan <l26yan@uwaterloo.ca> Date: Tue, 11 Jul 2023 15:35:43 -0400 Subject: [PATCH] ISTWCMS-6446 Remove 'Site email address' from Other under 'BCC email' --- uw_cfg_common.module | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uw_cfg_common.module b/uw_cfg_common.module index e7ae3e62..fcac3cba 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -723,6 +723,9 @@ function uw_cfg_common_form_webform_handler_form_alter(array &$form, FormStateIn // CC email: Set 'Webform author email address' as default. $form['settings']['to']['cc_mail']['cc_mail']['#default_value'] = "[webform:author:mail]"; + + // BCC email: remove 'Site email address' option under Other. + array_shift($form['settings']['to']['bcc_mail']['bcc_mail']['#options']['Other']); } } -- GitLab