From a57afb7712b9499270db17fdb5e9533d313f4515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Sat, 21 Aug 2010 12:16:33 +0200 Subject: Bug 583154: If you don't comment while setting the work_time (Hours Worked) field, you get an empty comment in bugmails r/a=mkanat --- Bugzilla/BugMail.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 84bb62e3c..c76b7dbbd 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -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 -- cgit v1.2.1