diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Bug.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 25c8c1f6d..eb228d27c 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -4811,4 +4811,10 @@ sub _multi_select_accessor { return $accessor; } + +sub has_attachment_with_mimetype { + my ($self, $type) = @_; + return any { $_->contenttype eq $type } @{ $self->attachments }; +} + 1; |