Commit 74512403 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 422465: Cloning a bug should cc the original reporter if the cloner isn't…

Bug 422465: Cloning a bug should cc the original reporter if the cloner isn't the reporter - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=mkanat
parent 179e06d7
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
# Joe Robins <jmrobins@tgix.com> # Joe Robins <jmrobins@tgix.com>
# Gervase Markham <gerv@gerv.net> # Gervase Markham <gerv@gerv.net>
# Shane H. W. Travis <travis@sedsystems.ca> # Shane H. W. Travis <travis@sedsystems.ca>
# Nitish Bezzala <nbezzala@yahoo.com>
############################################################################## ##############################################################################
# #
...@@ -404,10 +405,14 @@ if ($cloned_bug_id) { ...@@ -404,10 +405,14 @@ if ($cloned_bug_id) {
$vars->{'deadline'} = $cloned_bug->deadline; $vars->{'deadline'} = $cloned_bug->deadline;
if (defined $cloned_bug->cc) { if (defined $cloned_bug->cc) {
$vars->{'cc'} = join (" ", @{$cloned_bug->cc}); $vars->{'cc'} = join (", ", @{$cloned_bug->cc});
} else { } else {
$vars->{'cc'} = formvalue('cc'); $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) { foreach my $field (@enter_bug_fields) {
my $field_name = $field->name; my $field_name = $field->name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment