From a2d194cd5e1698c9b7ee8a0de14435404490f0da 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 --- 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 31c03fa..aecffa4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1078,6 +1078,7 @@ $('.print').on("click",function(e){ this.form.print_slip.value = 1; + this.form.barcode.remove(); this.form.submit(); }); -- 2.1.4