]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 583154: If you don't comment while setting the work_time (Hours Worked) field...
authorFrédéric Buclin <LpSolit@gmail.com>
Sat, 21 Aug 2010 10:18:07 +0000 (12:18 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 21 Aug 2010 10:18:07 +0000 (12:18 +0200)
r/a=mkanat

Bugzilla/BugMail.pm

index 26b67a3cc56caf6cf7481150ba7622cfcfb0213f..78a3970d67566daf4e6d944aa577f1d2d2461b3a 100644 (file)
@@ -285,6 +285,8 @@ sub Send {
     }
 
     my $comments = $bug->comments({ after => $start, to => $end });
+    # Skip empty comments.
+    @$comments = grep { $_->type || $_->body =~ /\S/ } @$comments;
 
     ###########################################################################
     # Start of email filtering code