]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1232716: Tabular reports with no column selected are not sortable
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 7 Jan 2016 20:33:25 +0000 (21:33 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 7 Jan 2016 20:33:25 +0000 (21:33 +0100)
r=dkl

template/en/default/reports/report-table.html.tmpl

index 03f3147dfe4abec02010fbb97e5e7a9f0eb5ce64..9027efa73a7d4e276f452359d40fb0e36826f0c6 100644 (file)
 [% total_key = '-total-' %]
 [%# Most of these classes are defined in the DataTables plugin itself. %]
 <table id="tabular_report_[% table_id FILTER html %]" class="tabular_report display cell-border compact">
-  [% IF col_field %]
-    <thead>
+  <thead>
     <tr>
-      <th>&darr;&nbsp;[% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %]&nbsp;&rarr;</th>
+      <th>
+        [% IF col_field %]
+          &darr;&nbsp;[% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %]&nbsp;&rarr;
+        [% ELSE %]
+          [% row_field_disp FILTER html %]
+        [% END %]
+      </th>
       [% FOREACH col = col_names %]
-        [% NEXT IF col == "" %]
         <th>[% PROCESS value_display value = col field = col_field %]</th>
       [% END %]
       <th class="ttotal">Total</th>
     </tr>
-    </thead>
-  [% END %]
+  </thead>
   <tbody>
   [% FOREACH row = row_names %]
     <tr>