From: lpsolit%gmail.com <> Date: Fri, 2 Jan 2009 13:26:51 +0000 (+0000) Subject: Bug 422465: Cloning a bug should cc the original reporter if the cloner isn't the... X-Git-Tag: bugzilla-3.3.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74512403f2107f7d19d1c3da7b764ca91e18bb3b;p=thirdparty%2Fbugzilla.git Bug 422465: Cloning a bug should cc the original reporter if the cloner isn't the reporter - Patch by Nitish Bezzala r/a=mkanat --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 245e4b56bd..d463a7a11e 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;