diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-11-21 21:18:31 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-11-21 21:18:31 +0100 |
commit | cc7a6559f56a4cd454582b13ccf1e99dc5288e33 (patch) | |
tree | 2c45ad4a62d163b7db2b6ab21023593630ae10ea /extensions | |
parent | c20a547c86471041956f364cf73980c92f4434cd (diff) | |
download | bugzilla-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.pm | 6 |
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; } } |