From c022af3a188cda7acac0ba3f531c24384d23126f Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 17 Mar 2008 22:04:56 +0000 Subject: =?UTF-8?q?Bug=20365442:=20If=20product/component=20does=20not=20h?= =?UTF-8?q?ave=20any=20flags,=20"Flags:=20/=20Requestee:"=20header=20shoul?= =?UTF-8?q?d=20not=20be=20shown=20on=20the=20bug=20creation=20form=20-=20P?= =?UTF-8?q?atch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r=3Dwurblzap=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/bug/create/create.html.tmpl | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'template/en/default') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index c8fd0fc10..24b6ec959 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -314,10 +314,21 @@ function handleWantsAttachment(wants_attachment) { [% IF product.flag_types.bug.size > 0 %] - [% PROCESS "flag/list.html.tmpl" flag_types = product.flag_types.bug - any_flags_requesteeble = 1 - flag_table_id = "bug_flags" - %] + [% display_flag_headers = 0 %] + [% any_flags_requesteeble = 0 %] + + [% FOREACH flag_type = product.flag_types.bug %] + [% NEXT UNLESS flag_type.is_active %] + [% display_flag_headers = 1 %] + [% SET any_flags_requesteeble = 1 IF flag_type.is_requestable && flag_type.is_requesteeble %] + [% END %] + + [% IF display_flag_headers %] + [% PROCESS "flag/list.html.tmpl" flag_types = product.flag_types.bug + any_flags_requesteeble = any_flags_requesteeble + flag_table_id = "bug_flags" + %] + [% END %] [% END %] -- cgit v1.2.1