]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 179351: improve variable scoping issues in order to fix a bug causing...
authorjocuri%softhome.net <>
Sat, 20 Mar 2004 06:03:52 +0000 (06:03 +0000)
committerjocuri%softhome.net <>
Sat, 20 Mar 2004 06:03:52 +0000 (06:03 +0000)
Bugzilla/BugMail.pm

index fad3ad5d85225db236996e7b65001a87610831a2..dc088c99cf8a67857a388363d722f1de298a9ba8 100644 (file)
@@ -221,12 +221,11 @@ sub ProcessOneBug($) {
 
     my $difftext = "";
     my $diffheader = "";
-    my $diffpart = {};
     my @diffparts;
     my $lastwho = "";
     foreach my $ref (@diffs) {
         my ($who, $what, $when, $old, $new, $attachid, $fieldname) = (@$ref);
-        $diffpart = {};
+        my $diffpart = {};
         if ($who ne $lastwho) {
             $lastwho = $who;
             $diffheader = "\n$who" . Param('emailsuffix') . " changed:\n\n";
@@ -301,8 +300,8 @@ sub ProcessOneBug($) {
     $deptext = trim($deptext);
 
     if ($deptext) {
-        #$difftext = trim($difftext . "\n\n" . $deptext);
-        $diffpart->{'text'} = trim("\n\n" . $deptext);
+        my $diffpart = {};
+        $diffpart->{'text'} = "\n" . trim("\n\n" . $deptext);
         push(@diffparts, $diffpart);
     }