diff options
author | David Walsh <davidwalsh83@gmail.com> | 2017-06-16 21:52:00 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2017-06-20 05:51:49 +0200 |
commit | a2032ba71b965ec350157aa91697b0c3a26efeb3 (patch) | |
tree | b4e0cb554c40ec4be3785ff2a1fdc64bf5643643 /Bugzilla/Bug.pm | |
parent | e198cf96051c7732a9da98fc938f201a3e1dd31e (diff) | |
download | bugzilla-a2032ba71b965ec350157aa91697b0c3a26efeb3.tar.gz bugzilla-a2032ba71b965ec350157aa91697b0c3a26efeb3.tar.xz |
Bug 1374396 - Add initial push connector for Phabricator r=dkl
Diffstat (limited to 'Bugzilla/Bug.pm')
-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; |