]> git.koha-community.org Git - koha.git/commit
Bug 8007: (QA followup) Add error handling when generating the pdf
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 28 Apr 2015 08:59:42 +0000 (10:59 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 30 Apr 2015 15:34:21 +0000 (12:34 -0300)
commita333a13da57c461baa5278ba7669795a93141789
treee51368a4d77733fcc52b980f9a08cb59eebe7627
parentce67173c3a16acff357ea09dfc18460a403373bd
Bug 8007: (QA followup) Add error handling when generating the pdf

If error occurs when generating the pdf, it would be better to get an
encapsulated error instead of the "software error" message in the pdf
file.
To test this patch I added this change:

b/Koha/Borrower/Discharge.pm
-115,6 +115,7 @@ sub generate_as_pdf {
     say $html_fh $html_content;
     close $html_fh;
     my $pdf = PDF::FromHTML->new( encoding => 'utf-8' );
+    $html_path .= "poeut";
     $pdf->load_file( $html_path );
     $pdf->convert;

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt
members/discharge.pl
opac/opac-discharge.pl