From 48494c357c0042d5161c352119ad354ec41f6d99 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 10 Oct 2023 16:14:02 +0000 Subject: [PATCH] Bug 32986: (follow-up) Fix CircAutoPrintQuickSlip and remove unecessary module usage Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- Koha/Template/Plugin/Notices.pm | 2 -- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Koha/Template/Plugin/Notices.pm b/Koha/Template/Plugin/Notices.pm index de8640b3c6..54aeef1a3d 100644 --- a/Koha/Template/Plugin/Notices.pm +++ b/Koha/Template/Plugin/Notices.pm @@ -22,8 +22,6 @@ use Modern::Perl; use Template::Plugin; use base qw( Template::Plugin ); -use C4::Koha; -use C4::Context; use Koha::Notice::Templates; =head1 NAME diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index f7bee5e5d9..91a77187d5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -1021,7 +1021,8 @@ window.location='/cgi-bin/koha/circ/circulation.pl'; return false; [% ELSE %] - return printx_window( '[% CircAutoPrintQuickSlip | html %]' ); + window.open("/cgi-bin/koha/members/printslip.pl?borrowernumber=" + borrowernumber + "&print=issue[% CircAutoPrintQuickSlip | html %]", "printwindow"); + return false; [% END %] } }); -- 2.39.5