Bug 1005780 - When cloning a bug, also add the assignee and qa contact to the CC: list of the new bug

r=glob, a=glob
trunk
Simon Green 2014-05-07 09:07:49 +10:00 committed by Sync
parent 267300af7c
commit aa75dacc3c
2 changed files with 9 additions and 5 deletions

View File

@ -1 +1 @@
b0df54c7f19387f72124b53431473374db26c0cf
85e0d6c95959b6086f5f5a90c6d3d50f294c043f

View File

@ -216,10 +216,14 @@ if ($cloned_bug_id) {
} else {
$vars->{'cc'} = formvalue('cc');
}
if ($cloned_bug->reporter->id != $user->id
&& none { $_ eq $cloned_bug->reporter->login } @{$cloned_bug->cc}) {
$vars->{'cc'} = join (", ", $cloned_bug->reporter->login, $vars->{'cc'});
foreach my $role (qw(reporter assigned_to qa_contact)) {
if (defined($cloned_bug->$role)
&& $cloned_bug->$role->id != $user->id
&& none { $_ eq $cloned_bug->$role->login } @{$cloned_bug->cc})
{
$vars->{'cc'} = join (", ", $cloned_bug->$role->login, $vars->{'cc'});
}
}
foreach my $field (@enter_bug_fields) {