projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix invoice batch download, #13461
[freeside.git]
/
httemplate
/
view
/
bill_batch.cgi
diff --git
a/httemplate/view/bill_batch.cgi
b/httemplate/view/bill_batch.cgi
index
cfd44fe
..
c848664
100644
(file)
--- a/
httemplate/view/bill_batch.cgi
+++ b/
httemplate/view/bill_batch.cgi
@@
-1,11
+1,13
@@
% if($magic eq 'download') {
% if($magic eq 'download') {
-% $m->clear_buffer;
-% $r->content_type('application/pdf');
-% $r->headers_out->add('Content-Disposition' => 'attachment;filename="invoice_batch_'.$batchnum.'.pdf"');
-<% $batch->pdf %>
+% my $content = $batch->pdf;
% $batch->pdf('');
% my $error = $batch->replace;
% warn "error deleting cached PDF: '$error'\n" if $error;
% $batch->pdf('');
% my $error = $batch->replace;
% warn "error deleting cached PDF: '$error'\n" if $error;
+%
+% $m->clear_buffer;
+% $r->content_type('application/pdf');
+% $r->headers_out->add('Content-Disposition' => 'attachment;filename="invoice_batch_'.$batchnum.'.pdf"');
+<% $content %>
% }
%
% elsif ($magic eq 'download_popup') {
% }
%
% elsif ($magic eq 'download_popup') {