From 3855ad983dfe81535ce3c2ebf956f336a2fc4acf Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Sat, 27 Oct 2012 14:41:23 -0400 Subject: Bug 805890 - Needinfo should be possible on closed bugs r=glob --- .../template/en/default/bug/needinfo.html.tmpl | 25 ++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'extensions/Needinfo/template/en/default') 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 %]