Bug 223541: Make flags show up correctly in "View all attachments" mode.

r=joel
a=justdave


git-svn-id: svn://10.0.0.236/trunk@157124 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jouni%heikniemi.net 2004-05-30 15:52:13 +00:00
parent 8157f0c8b5
commit f50a2c60a3
3 changed files with 13 additions and 4 deletions

View File

@ -768,6 +768,7 @@ sub viewall
$a{'description'}, $a{'ispatch'}, $a{'isobsolete'}, $a{'isprivate'},
$a{'datasize'}) = FetchSQLData();
$a{'isviewable'} = isViewable($a{'contenttype'});
$a{'flags'} = Bugzilla::Flag::match({ 'attach_id' => $a{'attachid'} });
# Add the hash representing the attachment to the array of attachments.
push @attachments, \%a;

View File

@ -61,11 +61,18 @@
<td valign="top">[% a.datasize FILTER unitconvert %]</td>
<td valign="top">
[% IF a.statuses.size == 0 %]
<i>none</i>
[% IF a.flags.size == 0 %]
<i>no flags</i>
[% ELSE %]
[% FOREACH s = a.statuses %]
[% s FILTER html FILTER replace('\s', '&nbsp;') %]<br>
[% FOREACH flag = a.flags %]
[% IF flag.setter %]
[% flag.setter.nick FILTER html %]:
[% END %]
[%+ flag.type.name FILTER html %][% flag.status %]
[% IF flag.status == "?" && flag.requestee %]
([% flag.requestee.nick FILTER html %])
[% END %]
[% ", " IF !loop.last %]
[% END %]
[% END %]
</td>

View File

@ -450,6 +450,7 @@
'attachment/show-multiple.html.tmpl' => [
'a.attachid',
'flag.status'
],
'attachment/updated.html.tmpl' => [