summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xshow_bug.cgi2
-rw-r--r--template/en/default/bug/show.xml.tmpl21
2 files changed, 13 insertions, 10 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 746167eef..42fad7121 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -116,7 +116,7 @@ $vars->{'bug_list'} = \@bug_list;
# If no explicit list is defined, we show all fields. We then exclude any
# on the exclusion list. This is so you can say e.g. "Everything except
# attachments" without listing almost all the fields.
-my @fieldlist = (Bugzilla::Bug->fields, 'group', 'long_desc',
+my @fieldlist = (Bugzilla::Bug->fields, 'flag', 'group', 'long_desc',
'attachment', 'attachmentdata', 'token');
my %displayfields;
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl
index cb0b10a42..12c813d87 100644
--- a/template/en/default/bug/show.xml.tmpl
+++ b/template/en/default/bug/show.xml.tmpl
@@ -62,18 +62,21 @@
[% END %]
[%# Bug Flags %]
- [% FOREACH type = bug.flag_types %]
- [% FOREACH flag = type.flags %]
- <flag name="[% type.name FILTER xml %]"
- id="[% flag.id FILTER xml %]"
- status="[% flag.status FILTER xml %]"
- setter="[% flag.setter.login FILTER email FILTER xml %]"
- [% IF flag.requestee %]
- requestee="[% flag.requestee.login FILTER email FILTER xml %]"
+ [% IF displayfields.flag %]
+ [% FOREACH type = bug.flag_types %]
+ [% FOREACH flag = type.flags %]
+ <flag name="[% type.name FILTER xml %]"
+ id="[% flag.id FILTER xml %]"
+ status="[% flag.status FILTER xml %]"
+ setter="[% flag.setter.login FILTER email FILTER xml %]"
+ [% IF flag.requestee %]
+ requestee="[% flag.requestee.login FILTER email FILTER xml %]"
+ [% END %]
+ />
[% END %]
- />
[% END %]
[% END %]
+
[% IF displayfields.long_desc %]
[% FOREACH c = bug.longdescs %]
[% NEXT IF c.isprivate && !user.in_group(Param("insidergroup")) %]