Follow-up patch for bug 315590: fix scenario where we have private attachments, and make the numbering behaviour consistent with the way we currently treat private bug comments; patch by Vlad Dascalu <vladd@bugzilla.org>, r=timeless; a=myk on the bug.

This commit is contained in:
uid623 2006-06-06 17:30:45 +00:00
Родитель ab0aeec6c1
Коммит 60d5000537
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -35,8 +35,8 @@
[% canseeprivate = !Param("insidergroup") || UserInGroup(Param("insidergroup")) %]
[% count = 0 %]
[% FOREACH attachment = attachments %]
[% count = count + 1 %]
[% IF !attachment.isprivate || canseeprivate %]
[% count = count + 1 %]
<tr [% "class=\"bz_private\"" IF attachment.isprivate %]>
<td valign="top">
<a name="a[% count %]" href="attachment.cgi?id=[% attachment.id %]">[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]</a>