aboutsummaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-01-02 13:26:51 +0000
committerlpsolit%gmail.com <>2009-01-02 13:26:51 +0000
commit74512403f2107f7d19d1c3da7b764ca91e18bb3b (patch)
tree1bc385d6e18cb15d4622e53c08561090fda54154 /enter_bug.cgi
parent179e06d7c93760d9764bed65295a95fe0930fc4d (diff)
downloadbugs-74512403f2107f7d19d1c3da7b764ca91e18bb3b.tar
bugs-74512403f2107f7d19d1c3da7b764ca91e18bb3b.tar.gz
bugs-74512403f2107f7d19d1c3da7b764ca91e18bb3b.tar.bz2
bugs-74512403f2107f7d19d1c3da7b764ca91e18bb3b.tar.xz
bugs-74512403f2107f7d19d1c3da7b764ca91e18bb3b.zip
Bug 422465: Cloning a bug should cc the original reporter if the cloner isn't the reporter - Patch by Nitish Bezzala <nbezzala@yahoo.com> r/a=mkanat
Diffstat (limited to 'enter_bug.cgi')
-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;