summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-11-21 21:18:31 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-11-21 21:18:31 +0100
commitcc7a6559f56a4cd454582b13ccf1e99dc5288e33 (patch)
tree2c45ad4a62d163b7db2b6ab21023593630ae10ea /extensions
parentc20a547c86471041956f364cf73980c92f4434cd (diff)
downloadbugzilla-cc7a6559f56a4cd454582b13ccf1e99dc5288e33.tar.gz
bugzilla-cc7a6559f56a4cd454582b13ccf1e99dc5288e33.tar.xz
Bug 791709 - Update bugzilla OrangeFactor extension to use keywords=intermittent-failure rather than whiteboard=[orange]
Diffstat (limited to 'extensions')
-rw-r--r--extensions/OrangeFactor/Extension.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/OrangeFactor/Extension.pm b/extensions/OrangeFactor/Extension.pm
index 754663157..483a83533 100644
--- a/extensions/OrangeFactor/Extension.pm
+++ b/extensions/OrangeFactor/Extension.pm
@@ -25,12 +25,12 @@ sub template_before_process {
return unless $user && $user->id && $user->settings;
return unless $user->settings->{'orange_factor'}->{'value'} eq 'on';
- # in the header we just need to set the var, to
- # ensure the css and javascript get included
+ # in the header we just need to set the var,
+ # to ensure the css and javascript get included
if ($file eq 'bug/show-header.html.tmpl'
|| $file eq 'bug/edit.html.tmpl') {
my $bug = exists $vars->{'bugs'} ? $vars->{'bugs'}[0] : $vars->{'bug'};
- if ($bug && $bug->status_whiteboard =~ /\[orange\]/) {
+ if ($bug && grep($_->name eq 'intermittent-failure', @{ $bug->keyword_objects })) {
$vars->{'orange_factor'} = 1;
}
}