From 4aa9620905c0f2a1aceb7efea728be4f2b45cbac Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 7 Oct 2020 11:01:02 -0400 Subject: [PATCH] Bug 26627: Print and confirming a hold can cause an infinite loop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan: 1) Place a hold for pickup at library A 2) Confirm the hold and print slip 3) Checkin the item again 4) Confirm the hold and print slip 5) The modal returns, do it again 6) Apply this patch 7) Reload the page 8) Repeat steps 1-3 9) No loop! Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 1 + 1 file changed, 1 insertion(+) 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 b96eafa3f4..b52fc5becf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1084,6 +1084,7 @@ $('.print').on("click",function(e){ this.form.print_slip.value = 1; + this.form.barcode.remove(); this.form.submit(); }); -- 2.11.0