]> 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:16:33 +0000 (12:16 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 21 Aug 2010 10:16:33 +0000 (12:16 +0200)
r/a=mkanat

Bugzilla/BugMail.pm

index 84bb62e3c91a5e9d395829bb9d29089540aaf604..c76b7dbbd5e95969b8de52a56c28ef451bbc3b32 100644 (file)
@@ -127,6 +127,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