summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-04 15:28:47 +0100
committermkanat%bugzilla.org <>2009-12-04 15:28:47 +0100
commitbc19204d3dffa448b364bfa4b5691a24f39f6765 (patch)
tree1fa13715dc812d8e36240a85374a34b29248973a /Bugzilla/User.pm
parent9c623cb93101c9bb8bf8c0428ca66dd5f7fdc63d (diff)
downloadbugzilla-bc19204d3dffa448b364bfa4b5691a24f39f6765.tar.gz
bugzilla-bc19204d3dffa448b364bfa4b5691a24f39f6765.tar.xz
Bug 452919: Allow the "created an attachment" message in comments to be localized
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 0fc2db336..6a318c93f 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1390,7 +1390,6 @@ sub wants_bug_mail {
my $self = shift;
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.
@@ -1439,7 +1438,7 @@ sub wants_bug_mail {
}
}
- if ($comments_concatenated =~ /Created an attachment \(/) {
+ if (grep { $_->type == CMT_ATTACHMENT_CREATED } @$comments) {
$events{+EVT_ATTACHMENT} = 1;
}
elsif (defined($$comments[0])) {