From: Frédéric Buclin Date: Sat, 21 Aug 2010 10:18:07 +0000 (+0200) Subject: Bug 583154: If you don't comment while setting the work_time (Hours Worked) field... X-Git-Tag: bugzilla-4.0rc1~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=839df773b45621a4595b66215483cd09f476205f;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 26b67a3cc5..78a3970d67 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -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