summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xenter_bug.cgi7
1 files changed, 6 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 245e4b56b..d463a7a11 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -22,6 +22,7 @@
# Joe Robins <jmrobins@tgix.com>
# Gervase Markham <gerv@gerv.net>
# Shane H. W. Travis <travis@sedsystems.ca>
+# Nitish Bezzala <nbezzala@yahoo.com>
##############################################################################
#
@@ -404,10 +405,14 @@ if ($cloned_bug_id) {
$vars->{'deadline'} = $cloned_bug->deadline;
if (defined $cloned_bug->cc) {
- $vars->{'cc'} = join (" ", @{$cloned_bug->cc});
+ $vars->{'cc'} = join (", ", @{$cloned_bug->cc});
} else {
$vars->{'cc'} = formvalue('cc');
}
+
+ if ($cloned_bug->reporter->id != $user->id) {
+ $vars->{'cc'} = join (", ", $cloned_bug->reporter->login, $vars->{'cc'});
+ }
foreach my $field (@enter_bug_fields) {
my $field_name = $field->name;