aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruid623 <>2006-06-07 00:30:45 +0000
committeruid623 <>2006-06-07 00:30:45 +0000
commitdf309377a5aa1aaded87e63424c9025c4fe2d7be (patch)
treedfc57da1f1a9f75cb76739ef9a087fb55a4ff197
parente03e832f09f996c0fe24c06e6a0c3715dfcbe747 (diff)
downloadbugs-df309377a5aa1aaded87e63424c9025c4fe2d7be.tar
bugs-df309377a5aa1aaded87e63424c9025c4fe2d7be.tar.gz
bugs-df309377a5aa1aaded87e63424c9025c4fe2d7be.tar.bz2
bugs-df309377a5aa1aaded87e63424c9025c4fe2d7be.tar.xz
bugs-df309377a5aa1aaded87e63424c9025c4fe2d7be.zip
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.
-rw-r--r--template/en/default/attachment/list.html.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl
index b39530244..34f646985 100644
--- a/template/en/default/attachment/list.html.tmpl
+++ b/template/en/default/attachment/list.html.tmpl
@@ -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>