Skip to content

Commit

Permalink
Bug 7138: Can't print basket group order pdf
Browse files Browse the repository at this point in the history
PDF print of basket groups is broken.

To test:

1) Make sure OrderPdfFormat is set to pdfformat::layout2pages or pdfformat::layout3pages
2) Create a basket with orders
3) Close the basket and create a basket group checking the checkbox
4) Print the basket group as PDF

Before patch the file is broken and when opened in an editor contains an error message.
After the patch the PDF should be generated correctly again.

Thx to Chris for helping me to fix the problem.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 7a3dc51)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
  • Loading branch information
kfischer authored and cnighswonger committed Nov 16, 2011
1 parent 9aba407 commit 05f1a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acqui/basketgroup.pl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ sub printbasketgrouppdf{
my $pdfformat = C4::Context->preference("OrderPdfFormat");
if ($pdfformat eq 'pdfformat::layout3pages' || $pdfformat eq 'pdfformat::layout2pages'){
eval {
require $pdfformat;
eval "require $pdfformat";
import $pdfformat;
};
if ($@){
Expand Down

0 comments on commit 05f1a92

Please sign in to comment.