summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-09-08 23:21:24 +0200
committerlpsolit%gmail.com <>2008-09-08 23:21:24 +0200
commit4dd427ea99673391d923db9682836d344f178b54 (patch)
tree15cac366546a970dfbe8a0ed7163976f09dfbfb2 /template/en/default/attachment
parent1d66aab134be7002268c4da177bbf4870ac90d6d (diff)
downloadbugzilla-4dd427ea99673391d923db9682836d344f178b54.tar.gz
bugzilla-4dd427ea99673391d923db9682836d344f178b54.tar.xz
Bug 453743: Decrease the number of calls to the DB about flags when viewing a bug - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/edit.html.tmpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 49c28aa64..8d0422065 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -29,7 +29,7 @@
Attachment [% attachment.id %] Details for
[%+ "$terms.Bug ${attachment.bug_id}" FILTER bug_link(attachment.bug_id) FILTER none %]
[% END %]
-[% subheader = BLOCK %][% bugsummary FILTER html %][% END %]
+[% subheader = BLOCK %][% attachment.bug.short_desc FILTER html %][% END %]
[% PROCESS global/header.html.tmpl
title = title
@@ -250,9 +250,11 @@
<br>
</small>
- [% IF flag_types.size > 0 %]
+ [% IF attachment.flag_types.size > 0 %]
[% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id
- attach_id = attachment.id %]<br>
+ attach_id = attachment.id
+ flag_types = attachment.flag_types
+ %]<br>
[% END %]
<div id="smallCommentFrame">