From: Frédéric Buclin Date: Thu, 7 Jan 2016 20:33:25 +0000 (+0100) Subject: Bug 1232716: Tabular reports with no column selected are not sortable X-Git-Tag: release-5.1.1~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fe7ec66f8d871ca86300ad80176f267afa940bd;p=thirdparty%2Fbugzilla.git Bug 1232716: Tabular reports with no column selected are not sortable r=dkl --- diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl index 03f3147dfe..9027efa73a 100644 --- a/template/en/default/reports/report-table.html.tmpl +++ b/template/en/default/reports/report-table.html.tmpl @@ -37,18 +37,21 @@ [% total_key = '-total-' %] [%# Most of these classes are defined in the DataTables plugin itself. %] - [% IF col_field %] - + - + [% FOREACH col = col_names %] - [% NEXT IF col == "" %] [% END %] - - [% END %] + [% FOREACH row = row_names %]
↓ [% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %] → + [% IF col_field %] + ↓ [% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %] → + [% ELSE %] + [% row_field_disp FILTER html %] + [% END %] + [% PROCESS value_display value = col field = col_field %]Total