From 11865329808368f41ef95ca234ce0357988b3988 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 --- 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 763d9efab4..9e440f7e89 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -947,7 +947,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.30.2