summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-07-31 18:41:44 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-07-31 18:41:44 +0200
commitb3abb85013982986b77f540b3f47d55f3578fd90 (patch)
tree10e503b75f03f4d777124d6218d441ecd715d9a4
parentd0b2bc684850c7a6287eaabd27a98469d868d4fa (diff)
downloadbugzilla-b3abb85013982986b77f540b3f47d55f3578fd90.tar.gz
bugzilla-b3abb85013982986b77f540b3f47d55f3578fd90.tar.xz
Bug 768573: bug/field.html.tmpl overrides the 'hidden' variable, causing some field labels to be hidden by accident
r=glob a=LpSolit
-rw-r--r--template/en/default/bug/field.html.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl
index 1f0ea175a..88a5adba8 100644
--- a/template/en/default/bug/field.html.tmpl
+++ b/template/en/default/bug/field.html.tmpl
@@ -21,14 +21,14 @@
# with default field values being displayed on a page.
#%]
-[% SET hidden = 0 %]
-[% IF bug AND !field.is_visible_on_bug(bug) %]
- [% SET hidden = 1 %]
-[% END %]
-
[% IF NOT no_tds %]
- [% PROCESS "bug/field-label.html.tmpl" %]
- <td class="field_value [% ' bz_hidden_field' IF hidden %]"
+ [% field_hidden = 0 %]
+ [% IF bug AND !field.is_visible_on_bug(bug) %]
+ [% field_hidden = 1 %]
+ [% END %]
+
+ [% INCLUDE "bug/field-label.html.tmpl" hidden = field_hidden %]
+ <td class="field_value [% ' bz_hidden_field' IF field_hidden %]"
id="field_container_[% field.name FILTER html %]"
[% " colspan=\"$value_span\"" FILTER none IF value_span %]>
[% END %]