From 4db9c13ab5fe3d5f692c2b7cbc5d55c8c2de39a1 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 3 Nov 2011 00:44:36 +0100 Subject: [PATCH] Bug 7138: Can't print basket group order pdf 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 Signed-off-by: Paul Poulain (cherry picked from commit 7a3dc5102e82bbb4c0c8487a0f128c20d4fe8248) Signed-off-by: Chris Nighswonger --- acqui/basketgroup.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/basketgroup.pl b/acqui/basketgroup.pl index d203e97c71..4d31a42196 100755 --- a/acqui/basketgroup.pl +++ b/acqui/basketgroup.pl @@ -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 ($@){ -- 2.39.5