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,18 +62,21 @@ ...@@ -62,18 +62,21 @@
[% END %] [% END %]
[%# Bug Flags %] [%# Bug Flags %]
[% FOREACH type = bug.flag_types %] [% IF displayfields.flag %]
[% FOREACH flag = type.flags %] [% FOREACH type = bug.flag_types %]
<flag name="[% type.name FILTER xml %]" [% FOREACH flag = type.flags %]
id="[% flag.id FILTER xml %]" <flag name="[% type.name FILTER xml %]"
status="[% flag.status FILTER xml %]" id="[% flag.id FILTER xml %]"
setter="[% flag.setter.login FILTER email FILTER xml %]" status="[% flag.status FILTER xml %]"
[% IF flag.requestee %] setter="[% flag.setter.login FILTER email FILTER xml %]"
requestee="[% flag.requestee.login FILTER email FILTER xml %]" [% IF flag.requestee %]
requestee="[% flag.requestee.login FILTER email FILTER xml %]"
[% END %]
/>
[% END %] [% 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