From c6433b10999a9bfe1f26bea4deaba11db3251fc0 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 21 Sep 2006 04:57:57 +0000 Subject: Bug 38922: Default (Initial) CC list for each component Patch By Max Kanat-Alexander r=LpSolit, a=myk --- process_bug.cgi | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 1824dd7f3..e671b9d76 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -26,6 +26,7 @@ # Jeff Hedlund # Frédéric Buclin # Lance Larsh +# Akamai Technologies # Implementation notes for this file: # @@ -1370,6 +1371,18 @@ foreach my $id (@idlist) { $query .= ", qa_contact = NULL"; } } + + + + # And add in the Default CC for the Component. + my $comp_obj = $component || new Bugzilla::Component($new_comp_id); + my @new_init_cc = @{$comp_obj->initial_cc}; + foreach my $cc (@new_init_cc) { + # NewCC must be defined or the code below won't insert + # any CCs. + $cgi->param('newcc') || $cgi->param('newcc', []); + $cc_add{$cc->id} = $cc->login; + } } my %dependencychanged; -- cgit v1.2.3-24-g4f1b