]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 422465: Cloning a bug should cc the original reporter if the cloner isn't the...
authorlpsolit%gmail.com <>
Fri, 2 Jan 2009 13:26:51 +0000 (13:26 +0000)
committerlpsolit%gmail.com <>
Fri, 2 Jan 2009 13:26:51 +0000 (13:26 +0000)
enter_bug.cgi

index 245e4b56bd7a3dd0dcaf0b2d86421e9f2304ea98..d463a7a11eead83f3949bc71e0a822c9f15cf6e5 100755 (executable)
@@ -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;