From 9018e58b6ce6119eb2e0f30b1dcadf4a6cb60776 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" Date: Tue, 26 Nov 2002 21:09:09 +0000 Subject: [PATCH] Bug 181221 - CSV reports on 2-d tables have header messed up. Patch by gerv; r=joel, a=justdave. --- .../en/default/reports/report-table.csv.tmpl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/webtools/bugzilla/template/en/default/reports/report-table.csv.tmpl b/webtools/bugzilla/template/en/default/reports/report-table.csv.tmpl index 60f3a4eefdbf..3e702f3965c6 100644 --- a/webtools/bugzilla/template/en/default/reports/report-table.csv.tmpl +++ b/webtools/bugzilla/template/en/default/reports/report-table.csv.tmpl @@ -26,10 +26,14 @@ [% col_field_disp = field_descs.$col_field || col_field %] [% row_field_disp = field_descs.$row_field || row_field %] -[% "$tbl_field_disp: $tbl\n" FILTER csv IF tbl_field %] -[% row_field_disp FILTER csv IF row_field %] -[% " / " IF col_field AND row_field %] -[% col_field_disp FILTER csv %], +[% title = BLOCK %] + [% "$tbl_field_disp: $tbl\n" IF tbl_field %] + [% row_field_disp IF row_field %] + [% " / " IF col_field AND row_field %] + [% col_field_disp %] +[% END %] + +[% title FILTER csv %], [% IF col_field -%] [% FOREACH col = col_names -%] [% col FILTER csv -%],