X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fsearch-csv.html;h=9eb1b66d1ad7e48be5ffae52a4065c743d3d7747;hb=f48936de00e81e89ea0f84b28e9c7b213fe898a8;hp=21822700e4481dc3743eb8ca1e5f0edf8e01c50c;hpb=1509cd837ea7e4e147a088d939b4198ee2456ef8;p=freeside.git diff --git a/httemplate/search/elements/search-csv.html b/httemplate/search/elements/search-csv.html index 21822700e..9eb1b66d1 100644 --- a/httemplate/search/elements/search-csv.html +++ b/httemplate/search/elements/search-csv.html @@ -39,7 +39,10 @@ my $rows = $args{'rows'}; my %opt = %{ $args{'opt'} }; #http_header('Content-Type' => 'text/comma-separated-values' ); #IE chokes -http_header('Content-Type' => 'text/plain' ); +#http_header('Content-Type' => 'text/plain' ); +http_header('Content-Type' => 'text/csv' ); # So saith RFC 4180 +http_header('Content-Disposition' => + 'attachment;filename="'.($opt{'name'} || PL($opt{'name_singular'}) ).'.csv"'); my $quote_char = '"'; $quote_char = $opt{csv_quote} if exists($opt{csv_quote});