summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugMail.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-08-21 12:16:33 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-08-21 12:16:33 +0200
commita57afb7712b9499270db17fdb5e9533d313f4515 (patch)
tree6ffba4edcb0e1daf08765b6b969f87e7d0807655 /Bugzilla/BugMail.pm
parent56f34b67fefe19d98dcdb0ea0597e338d20f3a87 (diff)
downloadbugzilla-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
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r--Bugzilla/BugMail.pm2
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