From 25fe729b4112bd856bdea0d178ed55ab9fc191ee Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 15 Jul 2020 22:28:07 +0000 Subject: [PATCH] Bug 25791: Remove win.print() Test plan: 1) Turn on system preference SelfCheckReceiptPrompt 2) Check out item via /cgi-bin/koha/sco/sco-main.pl 3) Click "Finish" 4) Click 'Print receipt and end session' 5) Notice two print dialog boxes right on top of each other 6) Apply patch 7) Repeat steps 1 - 4 8) Should only get a single print dialog. 9) Test in FF/Chrome and make sure behavior is consistent Signed-off-by: Kelly McElligott Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 6797f07bbdfb90c556f52bfe2f83cefdf91495f3) Signed-off-by: Lucas Gass (cherry picked from commit 59b67c3b37ed92926e9c75c0637c58af255ecec2) Signed-off-by: Aleisha Amohia --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 1 - 1 file changed, 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt index 71ab2a8070..8a8d70bdfe 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -481,7 +481,6 @@ confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) { if ( result && (Date.now() - confirmStart) < [% SelfCheckTimeout | html %] ) { var win = window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber | html %]&print=qslip"); - win.print(); location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; } else { location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout'; -- 2.39.5