]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix for 71798: bugmail not sent when moving from cc to assigned fields
authorcyeh%bluemartini.com <>
Thu, 29 Mar 2001 07:43:39 +0000 (07:43 +0000)
committercyeh%bluemartini.com <>
Thu, 29 Mar 2001 07:43:39 +0000 (07:43 +0000)
checked in patch based on patch submitted by jake@acutex.net

processmail

index a51a076670e8d5692af93bcf4fa031f9e069f3aa..88c633140dcc4dcb16111e37f0fb333a74e92ab8 100755 (executable)
@@ -657,7 +657,6 @@ sub getEmailAttributes ($@) {
     
     my ($commentField,@fieldDiffs) = @_;
     my (@flags,@uniqueFlags,%alreadySeen) = ();
-    my $Status = 0;
     
     foreach my $ref (@fieldDiffs) {
         my ($who, $fieldName, $when, $old, $new) = (@$ref);
@@ -671,7 +670,6 @@ sub getEmailAttributes ($@) {
             if ($new eq 'RESOLVED' || $new eq 'VERIFIED') {
                 push (@flags, 'Resolved');
             }
-            $Status = 1;
         }
         elsif ( $fieldName eq 'Severity' || $fieldName eq 'Status' ||
                 $fieldName eq 'Priority' ) {
@@ -686,7 +684,7 @@ sub getEmailAttributes ($@) {
     if ( $commentField =~ /Created an attachment \(/ ) {
         push (@flags, 'Attachments');
     }
-    elsif ( $commentField ne '' && !($Status)) {
+    elsif ( ($commentField ne '') && (scalar(@flags) == 1) && ($flags[0] eq 'Resolved')) {
         push (@flags, 'Comments');
     }