From d5e486e4783b45e37388d5d6d13214cd9d19fa5f Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Thu, 15 Mar 2018 17:50:56 +0000 Subject: [PATCH] table.html.tmpl: Use order_columns only when present Fix a hard dependency on the BMO extension. order_columns is set in Bugzilla::Extension::BMO, which might not be present / loaded. --- template/en/default/list/table.html.tmpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index df2f6b349e..486f3a00a6 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -90,7 +90,9 @@   [% END %] + [% order_columns.defined + ? 'sorted_' _ lsearch(order_columns, 'bug_id') + : '' FILTER html %]"> + [% order_columns.defined + ? 'sorted_' _ lsearch(order_columns, id) + : '' FILTER html %]">