From 3db6d7dc9cd5ef31b65cc41b1dc77dc742f1e53b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 17 May 2021 10:42:04 +0100 Subject: [PATCH] Bug 24434: Submit on print slip This patch ensures that the print slip option on the WrongTransfer modal also submits the form and thus triggers the actual transfer of the item. We also prevent a double transfer submission (and thus a cancellation line appearing in the branchtransfers table) for the case where a transfer back home is triggered. Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 668e67db58..2108bda509 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -459,7 +459,7 @@ - + @@ -606,7 +606,7 @@ [% ELSE %] - + [% END %] @@ -1128,6 +1128,10 @@ Dopop( $(this).data("url") ); }); + $('.submit').on("click",function(e){ + this.form.submit(); + }); + $('.cancel').on("click",function(e){ var docancel = $("").attr("type", "hidden").attr("name", "canceltransfer").val(1); $('#wrongtransferform').append(docancel); -- 2.39.5