From 8c1c56d94c9221c67025c10c580e0f84cbe3074e 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 (cherry picked from commit a71596fb395d449a62f5a6417780ed23948755c4) Signed-off-by: Lucas Gass --- 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 8e92e28260..27b0633604 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1037,6 +1037,7 @@ $('.print').on("click",function(e){ this.form.print_slip.value = 1; + this.form.barcode.remove(); this.form.submit(); }); -- 2.39.5