summaryrefslogtreecommitdiffstats
path: root/extensions/Needinfo/template/en/default/bug
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-10-27 20:41:23 +0200
committerDave Lawrence <dlawrence@mozilla.com>2012-10-27 20:41:23 +0200
commit3855ad983dfe81535ce3c2ebf956f336a2fc4acf (patch)
treeab89a8c9de08b5160a9a879d757e7c9afd5fed02 /extensions/Needinfo/template/en/default/bug
parent25584848500dcd388ec152de5a45f5260817126f (diff)
downloadbugzilla-3855ad983dfe81535ce3c2ebf956f336a2fc4acf.tar.gz
bugzilla-3855ad983dfe81535ce3c2ebf956f336a2fc4acf.tar.xz
Bug 805890 - Needinfo should be possible on closed bugs
r=glob
Diffstat (limited to 'extensions/Needinfo/template/en/default/bug')
-rw-r--r--extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl25
1 files changed, 19 insertions, 6 deletions
diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
index 8810b5f21..d55f28157 100644
--- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
+++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl
@@ -6,10 +6,11 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
-[% show_needinfo = 0 %]
-[% needinfo_requested = 0 %]
-[% needinfo_from = "" %]
-[% needinfo_from_any = 0 %]
+[% show_needinfo = 0 %]
+[% needinfo_requested = 0 %]
+[% needinfo_from = "" %]
+[% needinfo_from_any = 0 %]
+[% can_create_needinfo = 0 %]
[% FOREACH type = bug.flag_types %]
[% IF type.name == 'needinfo' %]
@@ -27,6 +28,19 @@
[% END %]
[% END %]
+[% IF user.in_group('canconfirm') && !needinfo_requested %]
+ [% IF bug.status.is_open %]
+ [% can_create_needinfo = 1 %]
+ [% ELSE %]
+ [% FOREACH field = Bugzilla.active_custom_fields(product=>bug.product_obj, component=>bug.component_obj, type=>2) %]
+ [% IF field.description.match('^status-firefox') && bug.${field.name} == 'affected' %]
+ [% can_create_needinfo = 1 %]
+ [% LAST %]
+ [% END %]
+ [% END %]
+ [% END %]
+[% END %]
+
[% IF show_needinfo %]
[%# Displays NEEDINFO tag in bug header %]
[% IF needinfo_requested %]
@@ -48,8 +62,7 @@
[% END %]
[% END %]
- [% IF user.in_group('canconfirm') && !is_attachment
- && !needinfo_requested && bug.status.is_open %]
+ [% IF can_create_needinfo %]
<script>
function needinfoRole (select) {
YAHOO.util.Dom.get('needinfo').checked = true;