[Koha-bugs] [Bug 7952] PDF::Reuse under plack writes to console STDOUT instead to browser

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 13 00:21:49 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7952

--- Comment #1 from Dobrica Pavlinusic <dpavlin at rot13.org> ---
Created attachment 9161
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=9161&action=edit
Bug 7952 - PDF::Reuse under plack writes to console STDOUT instead to browser

Without name option to prFile, PDF::Reuse opens '-' file which is real
console STDOUT on plack so pdf file gets emited to terminal instead of
sending it to browser.

This change creates temporary file using File::Temp, pass it to PDF::Reuse
and then reads it back and prints it out for plack (or CGI) to pick up.

Test secenario:

1. Home › Tools › Patron Card Creator › Manage Card Batches
2. select batch checkbox and click Export
3. select template and click Export
4. click on pdf file to download it

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list