Bug 21853: (follow-up) to solve printpdf error
authorMark Tompsett <mtompset@hotmail.com>
Sun, 18 Nov 2018 05:36:44 +0000 (05:36 +0000)
committerJesse Maseto <jesse@bywatersolution.com>
Fri, 7 Dec 2018 18:32:00 +0000 (18:32 +0000)
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Theoretically this follow-up makes no difference. All modules only export
printpdf and now we are just asking explicitly for printpdf. But if it
resolves some exception on the rule..

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 5b62714e47d5acd0a4c371024edacc02cfe6f5b5)

Signed-off-by: Jesse Maseto <jesse@bywatersolution.com>

acqui/basketgroup.pl

index e1cba84..4cb1be1 100755 (executable)
@@ -131,7 +131,7 @@ sub printbasketgrouppdf{
         $pdfformat = "Koha::$pdfformat";
         my $pdfformat_filepath = File::Spec->catfile(split /::/, $pdfformat) . '.pm';
         require $pdfformat_filepath;
-        import $pdfformat;
+        import $pdfformat qw(printpdf);
     }
     else {
         print $input->header;