[freeside-commits] freeside/httemplate/misc download-bill_batch.html, 1.1.4.2, 1.1.4.3
Mark Wells
mark at wavetail.420.am
Mon Aug 15 19:10:10 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv1795/httemplate/misc
Modified Files:
Tag: FREESIDE_2_1_BRANCH
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.4.2
retrieving revision 1.1.4.3
diff -u -w -d -r1.1.4.2 -r1.1.4.3
--- download-bill_batch.html 30 Jul 2011 23:20:37 -0000 1.1.4.2
+++ download-bill_batch.html 16 Aug 2011 02:10:08 -0000 1.1.4.3
@@ -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