summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Panteleev <github.private@thecybershadow.net>2018-04-08 18:06:28 +0200
committerDylan William Hardison <dylan@hardison.net>2018-04-08 18:06:28 +0200
commitb699c8deaa16d0f7d6929164d0f5e68895453562 (patch)
tree6ea7f63600cb18a827e8bf60051df57fe1310e33
parent56c84bb9a182f771bc46da198a267c7111f9df9b (diff)
downloadbugzilla-b699c8deaa16d0f7d6929164d0f5e68895453562.tar.gz
bugzilla-b699c8deaa16d0f7d6929164d0f5e68895453562.tar.xz
table.html.tmpl: Use order_columns only when present (#23)
Fix a hard dependency on the BMO extension. order_columns is set in Bugzilla::Extension::BMO, which might not be present / loaded.
-rw-r--r--template/en/default/list/table.html.tmpl8
1 files changed, 6 insertions, 2 deletions
diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl
index df2f6b349..486f3a00a 100644
--- a/template/en/default/list/table.html.tmpl
+++ b/template/en/default/list/table.html.tmpl
@@ -90,7 +90,9 @@
<th class="sorttable_nosort">&nbsp;</th>
[% END %]
<th colspan="[% splitheader ? 2 : 1 %]" class="first-child
- sorted_[% lsearch(order_columns, 'bug_id') FILTER html %]">
+ [% order_columns.defined
+ ? 'sorted_' _ lsearch(order_columns, 'bug_id')
+ : '' FILTER html %]">
<a href="buglist.cgi?
[% urlquerypart FILTER html %]&amp;order=
[% PROCESS new_order id='bug_id' %]
@@ -136,7 +138,9 @@
[% BLOCK columnheader %]
<th colspan="[% splitheader ? 2 : 1 %]"
class="sortable_column_[% key FILTER html %]
- sorted_[% lsearch(order_columns, id) FILTER html %]">
+ [% order_columns.defined
+ ? 'sorted_' _ lsearch(order_columns, id)
+ : '' FILTER html %]">
<a href="buglist.cgi?[% urlquerypart FILTER html %]&amp;order=
[% PROCESS new_order %]
[%-#%]&amp;query_based_on=