From a2032ba71b965ec350157aa91697b0c3a26efeb3 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Fri, 16 Jun 2017 14:52:00 -0500 Subject: Bug 1374396 - Add initial push connector for Phabricator r=dkl --- Bugzilla/Bug.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla/Bug.pm') 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; -- cgit v1.2.3-24-g4f1b