From 74512403f2107f7d19d1c3da7b764ca91e18bb3b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 2 Jan 2009 13:26:51 +0000 Subject: Bug 422465: Cloning a bug should cc the original reporter if the cloner isn't the reporter - Patch by Nitish Bezzala r/a=mkanat --- enter_bug.cgi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index 245e4b56b..d463a7a11 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -22,6 +22,7 @@ # Joe Robins # Gervase Markham # Shane H. W. Travis +# Nitish Bezzala ############################################################################## # @@ -404,10 +405,14 @@ if ($cloned_bug_id) { $vars->{'deadline'} = $cloned_bug->deadline; if (defined $cloned_bug->cc) { - $vars->{'cc'} = join (" ", @{$cloned_bug->cc}); + $vars->{'cc'} = join (", ", @{$cloned_bug->cc}); } else { $vars->{'cc'} = formvalue('cc'); } + + if ($cloned_bug->reporter->id != $user->id) { + $vars->{'cc'} = join (", ", $cloned_bug->reporter->login, $vars->{'cc'}); + } foreach my $field (@enter_bug_fields) { my $field_name = $field->name; -- cgit v1.2.1