diff options
author | Vladimir Panteleev <github.private@thecybershadow.net> | 2018-04-08 18:06:28 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-04-08 18:06:28 +0200 |
commit | b699c8deaa16d0f7d6929164d0f5e68895453562 (patch) | |
tree | 6ea7f63600cb18a827e8bf60051df57fe1310e33 /template/en | |
parent | 56c84bb9a182f771bc46da198a267c7111f9df9b (diff) | |
download | bugzilla-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.
Diffstat (limited to 'template/en')
-rw-r--r-- | template/en/default/list/table.html.tmpl | 8 |
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"> </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 %]&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 %]&order= [% PROCESS new_order %] [%-#%]&query_based_on= |