diff options
Diffstat (limited to 'Bugzilla/Comment.pm')
-rw-r--r-- | Bugzilla/Comment.pm | 7 |
1 files changed, 5 insertions, 2 deletions
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; |