summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-10-05 18:29:02 +0200
committerByron Jones <glob@mozilla.com>2015-10-05 18:29:02 +0200
commitbbd091bd25c907f6f18fed0b8ccc351429261956 (patch)
tree753e96f9c2484bf2a49d546a4f8e537f4d73e465 /Bugzilla/Bug.pm
parent42270ffc2922c5883485804b7d76b8e2c8cb3ba1 (diff)
downloadbugzilla-bbd091bd25c907f6f18fed0b8ccc351429261956.tar.gz
bugzilla-bbd091bd25c907f6f18fed0b8ccc351429261956.tar.xz
Bug 1164063 - show a warning near the attachments table for sec-high/sec-crit bugs without sec-approval? on patches
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 312039306..73dc98963 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -3621,6 +3621,12 @@ sub keyword_objects {
return $self->{'keyword_objects'};
}
+sub has_keyword {
+ my ($self, $keyword) = @_;
+ $keyword = lc($keyword);
+ return any { lc($_->name) eq $keyword } @{ $self->keyword_objects };
+}
+
sub comments {
my ($self, $params) = @_;
return [] if $self->{'error'};