aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-10-26 00:22:53 +0000
committermkanat%bugzilla.org <>2009-10-26 00:22:53 +0000
commit155bc6f800ebb5da30ff892105411da1163ae703 (patch)
tree320414cd9ba6de4bd566fb249913e1fd9f03b415
parentBug 521043: Release Notes for Bugzilla 3.4.3 (diff)
downloadbugzilla-155bc6f800ebb5da30ff892105411da1163ae703.tar.gz
bugzilla-155bc6f800ebb5da30ff892105411da1163ae703.tar.bz2
bugzilla-155bc6f800ebb5da30ff892105411da1163ae703.zip
Bug 524244: Make the HTML buglist not display a header if there are no bugs found.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
-rw-r--r--template/en/default/list/table.html.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl
index 2305d2fa5..6ca90b921 100644
--- a/template/en/default/list/table.html.tmpl
+++ b/template/en/default/list/table.html.tmpl
@@ -23,6 +23,10 @@
[%# Initialization #%]
[%############################################################################%]
+[%# Don't display the table or do any processing if there are no bugs
+ # to display %]
+[% RETURN IF !bugs.size %]
+
[%# Columns whose titles or values should be abbreviated to make the list
# more compact. For columns whose titles should be abbreviated,
# the shortened title is included. For columns whose values should be