summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2009-06-03 00:00:10 +0200
committerwurblzap%gmail.com <>2009-06-03 00:00:10 +0200
commit5a10ebe6514918f89e60e0dc43fa19ebe06c03be (patch)
treed2c2a8ecb05804f93e69fd79d58993d57f155258 /Bugzilla/User.pm
parenta778b485e088757d81606ff85aae2f39473c42f5 (diff)
downloadbugzilla-5a10ebe6514918f89e60e0dc43fa19ebe06c03be.tar.gz
bugzilla-5a10ebe6514918f89e60e0dc43fa19ebe06c03be.tar.xz
Bug 457657 – Make e-mail comment header localizable.
Patch by Marc Schumann <wurblzap@gmail.com>, r/a=LpSolit
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 55be2cf9e..0eb47b8b3 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1372,8 +1372,9 @@ our %names_to_events = (
# Note: the "+" signs before the constants suppress bareword quoting.
sub wants_bug_mail {
my $self = shift;
- my ($bug_id, $relationship, $fieldDiffs, $commentField, $dependencyText,
+ my ($bug_id, $relationship, $fieldDiffs, $comments, $dependencyText,
$changer, $bug_is_new) = @_;
+ my $comments_concatenated = join("\n", map { $_->{body} } (@$comments));
# Make a list of the events which have happened during this bug change,
# from the point of view of this user.
@@ -1422,10 +1423,10 @@ sub wants_bug_mail {
}
}
- if ($commentField =~ /Created an attachment \(/) {
+ if ($comments_concatenated =~ /Created an attachment \(/) {
$events{+EVT_ATTACHMENT} = 1;
}
- elsif ($commentField ne '') {
+ elsif (defined($$comments[0])) {
$events{+EVT_COMMENT} = 1;
}