From 58a8cf2b06b04dc1dac81353e61c62f34648b7d9 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 14 Apr 2021 15:17:53 +0000 Subject: [PATCH] Bug 28148: Remove 'print' class from 'Print transfer slip' when transfer exists The 'print' class triggers JS to create the transfer and update a form When a transfer exists we have no form and use 'openWin' to trigger the print Also, I remove a stray '1' in the template To test: 1 - Set AutomaticItemReturn to "Don't" 2 - Check in an item from another branch 3 - Confirm the transfer 4 - Check it in again 5 - Click 'Print slip' 6 - Note error in console: Uncaught TypeError: this.form is null 7 - apply patch 8 - Repeat 9 - No error! --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 9cf7cf83b5..8c5e432074 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -441,7 +441,7 @@ - +
@@ -562,7 +562,7 @@