summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorDavid Walsh <davidwalsh83@gmail.com>2017-06-16 21:52:00 +0200
committerDavid Lawrence <dkl@mozilla.com>2017-06-20 05:51:49 +0200
commita2032ba71b965ec350157aa91697b0c3a26efeb3 (patch)
treeb4e0cb554c40ec4be3785ff2a1fdc64bf5643643 /Bugzilla/Bug.pm
parente198cf96051c7732a9da98fc938f201a3e1dd31e (diff)
downloadbugzilla-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.pm6
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;