From 9d11a0d5090509137c1e94942159dcfe59fc61d9 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sun, 13 Dec 2009 20:56:44 +0000 Subject: Bug 526734: Allow localization of the "From update of attachment" string in comments Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla/Comment.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Comment.pm') diff --git a/Bugzilla/Comment.pm b/Bugzilla/Comment.pm index f09985426..e81819652 100644 --- a/Bugzilla/Comment.pm +++ b/Bugzilla/Comment.pm @@ -96,7 +96,8 @@ sub bug { sub is_about_attachment { my ($self) = @_; - return 1 if $self->type == CMT_ATTACHMENT_CREATED; + return 1 if ($self->type == CMT_ATTACHMENT_CREATED + or $self->type == CMT_ATTACHMENT_UPDATED); return 0; } @@ -160,7 +161,9 @@ sub _check_extra_data { if ($type == CMT_MOVED_TO) { $extra_data = Bugzilla::User->check($extra_data)->login; } - elsif ($type == CMT_ATTACHMENT_CREATED) { + elsif ($type == CMT_ATTACHMENT_CREATED + or $type == CMT_ATTACHMENT_UPDATED) + { my $attachment = Bugzilla::Attachment->check({ id => $extra_data }); $extra_data = $attachment->id; -- cgit v1.2.3-24-g4f1b