Commit df309377 authored by uid623's avatar uid623

Follow-up patch for bug 315590: fix scenario where we have private attachments,…

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.
parent e03e832f
......@@ -35,8 +35,8 @@
[% canseeprivate = !Param("insidergroup") || UserInGroup(Param("insidergroup")) %]
[% count = 0 %]
[% FOREACH attachment = attachments %]
[% IF !attachment.isprivate || canseeprivate %]
[% count = count + 1 %]
[% IF !attachment.isprivate || canseeprivate %]
<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>
......
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