Commit 85e0d6c9 authored by Simon Green's avatar Simon Green

Bug 1005780 - When cloning a bug, also add the assignee and qa contact to the…

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