[freeside-commits] freeside/httemplate/search/elements search-xls.html, 1.2, 1.2.2.1
Mark Wells
mark at wavetail.420.am
Sun Dec 20 18:56:46 PST 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search/elements
In directory wavetail.420.am:/tmp/cvs-serv17706
Modified Files:
Tag: FREESIDE_1_9_BRANCH
search-xls.html
Log Message:
Fix filename for Excel spreadsheet reports
Index: search-xls.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/elements/search-xls.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- search-xls.html 4 May 2009 00:22:44 -0000 1.2
+++ search-xls.html 21 Dec 2009 02:56:43 -0000 1.2.2.1
@@ -13,7 +13,9 @@
#http://support.microsoft.com/kb/199841
http_header('Content-Type' => 'application/vnd.ms-excel' );
-
+http_header('Content-Disposition' =>
+ 'attachment;filename="'.($opt{'name'} || PL($opt{'name_singular'}) ).'.xls"');
+
#http://support.microsoft.com/kb/812935
#http://support.microsoft.com/kb/323308
$HTML::Mason::Commands::r->headers_out->{'Cache-control'} = 'max-age=0';
@@ -79,5 +81,5 @@
$workbook->close();# or die "Error creating .xls file: $!";
http_header('Content-Length' => length($data) );
-
+
</%init>
More information about the freeside-commits
mailing list