diff options
author | lpsolit%gmail.com <> | 2008-03-17 23:04:56 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-03-17 23:04:56 +0100 |
commit | c022af3a188cda7acac0ba3f531c24384d23126f (patch) | |
tree | c89974fef6bde3df1c608d6e4adbdca355fbcb65 /template/en/default/bug | |
parent | e227340c55d243abb28a5bb7a0154ae9e10a91d3 (diff) | |
download | bugzilla-c022af3a188cda7acac0ba3f531c24384d23126f.tar.gz bugzilla-c022af3a188cda7acac0ba3f531c24384d23126f.tar.xz |
Bug 365442: If product/component does not have any flags, "Flags: / Requestee:" header should not be shown on the bug creation form - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=LpSolit
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 19 |
1 files changed, 15 insertions, 4 deletions
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) { <td rowspan="[% num_rows FILTER html %]"> [% 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 %] </td> </tr> |