From: Kohei Yoshino Date: Thu, 12 Mar 2020 16:11:39 +0000 (-0400) Subject: Bug 1621278 - Make bug IDs on search results proper bug links X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae2e9d00cd5d85463612825af971cf4834ed5b51;p=thirdparty%2Fbugzilla.git Bug 1621278 - Make bug IDs on search results proper bug links --- diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index 78cef0f94..86aca78ed 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -209,12 +209,13 @@ [% END %] - [% bug.bug_id %] + [% bug.bug_id FILTER bug_link(bug.bug_id) FILTER none %] [%+ '[SEC]' IF bug.secure_mode %] [% FOREACH column = displaycolumns %] [% col_abbrev = abbrev.$column %] + [% col_type = bug_fields.$column.type %] [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html FILTER wbr -%] - [% ELSIF bug_fields.$column.type == constants.FIELD_TYPE_BUG_ID %] - - [%- bug.$column.truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%] - + [% ELSIF col_type == constants.FIELD_TYPE_BUG_ID || col_type == constants.FIELD_TYPE_BUG_LIST %] + [% FOREACH id = bug.$column.split(', ') %] + [% id FILTER bug_link(id) FILTER none %][% ', ' UNLESS loop.last() %] + [% END %] [% ELSE %] [%- display_value(column, bug.$column).truncate(col_abbrev.maxlength, col_abbrev.ellipsis) FILTER html -%] [% END %]