Commit 58cfa7b9 authored by Reed Loden's avatar Reed Loden

Bug 715432 - Cloned bugs will include duplicates in the CC list if the reporter…

Bug 715432 - Cloned bugs will include duplicates in the CC list if the reporter is also CC'd to the bug [r=glob a=LpSolit]
parent 19f3bf50
......@@ -35,6 +35,8 @@ use Bugzilla::Field;
use Bugzilla::Status;
use Bugzilla::UserAgent;
use List::MoreUtils qw(none);
my $user = Bugzilla->login(LOGIN_REQUIRED);
my $cloned_bug;
......@@ -231,7 +233,8 @@ if ($cloned_bug_id) {
$vars->{'cc'} = formvalue('cc');
}
if ($cloned_bug->reporter->id != $user->id) {
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'});
}
......
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