From a71596fb395d449a62f5a6417780ed23948755c4 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=utf8 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 Signed-off-by: Jonathan Druart --- 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.39.5