summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index d082bf6a7..b571f8f44 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -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'});
}