diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-21 12:16:33 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-08-21 12:16:33 +0200 |
commit | a57afb7712b9499270db17fdb5e9533d313f4515 (patch) | |
tree | 6ffba4edcb0e1daf08765b6b969f87e7d0807655 | |
parent | 56f34b67fefe19d98dcdb0ea0597e338d20f3a87 (diff) | |
download | bugzilla-a57afb7712b9499270db17fdb5e9533d313f4515.tar.gz bugzilla-a57afb7712b9499270db17fdb5e9533d313f4515.tar.xz |
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
-rw-r--r-- | Bugzilla/BugMail.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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 |