Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
7f7a00fc
Commit
7f7a00fc
authored
1 year ago
by
Lily Yan
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-6446 Remove 'Site email address' from Other under 'BCC email'
parent
99fec46b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!360
ISTWCMS-6446 Prevent people from using [site:email] for webform email handlers
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uw_cfg_common.module
+3
-0
3 additions, 0 deletions
uw_cfg_common.module
with
3 additions
and
0 deletions
uw_cfg_common.module
+
3
−
0
View file @
7f7a00fc
...
...
@@ -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'
]);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment