diff options
| author | mark <mark> | 2011-08-16 02:10:08 +0000 |
|---|---|---|
| committer | mark <mark> | 2011-08-16 02:10:08 +0000 |
| commit | 3124e61950c0a502018cc5fb0f5977f20958a87f (patch) | |
| tree | 785366328fd7e6e280cb4c00e4a2e99742dc06a5 /httemplate/misc | |
| parent | 04eff5ae86574de31fc281bc52a65a93ef77b3e4 (diff) | |
reliably start batch download, #947
Diffstat (limited to 'httemplate/misc')
| -rw-r--r-- | httemplate/misc/download-bill_batch.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/misc/download-bill_batch.html b/httemplate/misc/download-bill_batch.html index 00d9236f3..9b5f1efa8 100644 --- a/httemplate/misc/download-bill_batch.html +++ b/httemplate/misc/download-bill_batch.html @@ -12,6 +12,12 @@ $m->clear_buffer; $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(''); |
