From: Frédéric Buclin Date: Sat, 21 Aug 2010 10:16:33 +0000 (+0200) Subject: Bug 583154: If you don't comment while setting the work_time (Hours Worked) field... X-Git-Tag: bugzilla-4.1.1~312 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a57afb7712b9499270db17fdb5e9533d313f4515;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 84bb62e3c9..c76b7dbbd5 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