]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 524244: Make the HTML buglist not display a header if there are no bugs found.
authormkanat%bugzilla.org <>
Mon, 26 Oct 2009 00:22:53 +0000 (00:22 +0000)
committermkanat%bugzilla.org <>
Mon, 26 Oct 2009 00:22:53 +0000 (00:22 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

template/en/default/list/table.html.tmpl

index 2305d2fa51e424081a2f4d645eb7630866e7ab91..6ca90b921ba26a4b493a2c6afa85ae06254cbecc 100644 (file)
 [%# 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