From 75bea0ef0af3143e84d98d44433679ffe3759fa7 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 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! --- 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 fefcc8f02e..cf440d2e30 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1074,6 +1074,7 @@ $('.print').on("click",function(e){ this.form.print_slip.value = 1; + this.form.barcode.remove(); this.form.submit(); }); -- 2.24.1 (Apple Git-126)