diff options
author | Simon Green <sgreen@redhat.com> | 2014-05-07 01:07:49 +0200 |
---|---|---|
committer | Simon Green <sgreen@redhat.com> | 2014-05-07 01:07:49 +0200 |
commit | 85e0d6c95959b6086f5f5a90c6d3d50f294c043f (patch) | |
tree | 7e8581f3514e62e54e438b933809836ad8e6a282 /enter_bug.cgi | |
parent | b0df54c7f19387f72124b53431473374db26c0cf (diff) | |
download | bugzilla-85e0d6c95959b6086f5f5a90c6d3d50f294c043f.tar.gz bugzilla-85e0d6c95959b6086f5f5a90c6d3d50f294c043f.tar.xz |
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
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 93997e665..baf5d7833 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -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) { |