ticket search spreadsheet download fix, RT#10855
authormark <mark>
Wed, 12 Jan 2011 22:00:49 +0000 (22:00 +0000)
committermark <mark>
Wed, 12 Jan 2011 22:00:49 +0000 (22:00 +0000)
rt/FREESIDE_MODIFIED
rt/share/html/Search/Results.tsv

index 7347124..7730151 100644 (file)
@@ -66,6 +66,7 @@ share/html/Elements/ShowLink_Checklist
  share/html/Elements/SelectCustomerClass #SearchCustomerFields
  share/html/Elements/SelectCustomerTag #SearchCustomerFields
  share/html/Search/Build.html
+share/html/Search/Results.tsv #content-type bug fix
  share/html/Search/Elements/BuildFormatString
  share/html/Search/Elements/PickCFs #customfield date patch
 share/html/Ticket/Checklist.html
index 946a35d..0724c33 100644 (file)
@@ -95,7 +95,8 @@ my @attrs = qw(
     ResolvedObj->ISO LastUpdatedObj->ISO
 );
 
-$r->content_type('application/vnd.ms-excel');
+$r->content_type('text/csv');
+$r->header_out('Content-Disposition' => 'attachment;filename="Results.csv"');
 {
     my @header;
     foreach my $attr (@attrs) {