[freeside-commits] freeside/httemplate/misc download-bill_batch.html, 1.1, 1.2
Mark Wells
mark at wavetail.420.am
Mon Aug 15 19:09:46 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv1682/httemplate/misc
Modified Files:
download-bill_batch.html
Log Message:
reliably start batch download, #947
Index: download-bill_batch.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/download-bill_batch.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- download-bill_batch.html 30 Jul 2011 23:13:40 -0000 1.1
+++ download-bill_batch.html 16 Aug 2011 02:09:44 -0000 1.2
@@ -12,6 +12,12 @@
$r->content_type('application/pdf');
$r->headers_out->add( 'Content-Disposition' =>
'attachment;filename="invoice_batch_'.$batchnum.'.pdf"');
+my $cookie = CGI::Cookie->new(
+ -name => "bill_batch_download",
+ -value => $batchnum,
+ -expires => '+1d',
+);
+$r->headers_out->add( 'Set-Cookie' => $cookie->as_string );
$m->print($content);
$batch->pdf('');
More information about the freeside-commits
mailing list