Commit 8b2db148 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 508416: Bug flags are always displayed in the XML view of bugs - Patch by…

Bug 508416: Bug flags are always displayed in the XML view of bugs - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
parent c253b28a
...@@ -116,7 +116,7 @@ $vars->{'bug_list'} = \@bug_list; ...@@ -116,7 +116,7 @@ $vars->{'bug_list'} = \@bug_list;
# If no explicit list is defined, we show all fields. We then exclude any # 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 # on the exclusion list. This is so you can say e.g. "Everything except
# attachments" without listing almost all the fields. # 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'); 'attachment', 'attachmentdata', 'token');
my %displayfields; my %displayfields;
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
[% END %] [% END %]
[%# Bug Flags %] [%# Bug Flags %]
[% IF displayfields.flag %]
[% FOREACH type = bug.flag_types %] [% FOREACH type = bug.flag_types %]
[% FOREACH flag = type.flags %] [% FOREACH flag = type.flags %]
<flag name="[% type.name FILTER xml %]" <flag name="[% type.name FILTER xml %]"
...@@ -74,6 +75,8 @@ ...@@ -74,6 +75,8 @@
/> />
[% END %] [% END %]
[% END %] [% END %]
[% END %]
[% IF displayfields.long_desc %] [% IF displayfields.long_desc %]
[% FOREACH c = bug.longdescs %] [% FOREACH c = bug.longdescs %]
[% NEXT IF c.isprivate && !user.in_group(Param("insidergroup")) %] [% NEXT IF c.isprivate && !user.in_group(Param("insidergroup")) %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment