From 236c9d4d98e653874486b5cb0cf12f0e3447b0c9 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Tue, 30 Apr 2024 15:32:13 -0400 Subject: [PATCH] Bug 36735: Fix revert hold button Update the revert hold button to use the new include for submitting forms from link data with a POST request To test: 1. Place a hold on a biblio record 2. Check an item in to fill the hold 3. On the holds tab for the biblio record, click the "Revert waiting status" button for that hold --> The page reloads but the hold is still waiting 4. Apply patchset 5. Click to another page and then return to the holds tab (we don't want to refresh the page and resend the request) 6. Click the "Revert waiting status" button for that hold --> The hold should be reverted to pending status Signed-off-by: David Nind Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc index e939247f4b..1890c56115 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -257,7 +257,7 @@ [%- END -%] [%- END # IF SuspendHoldsIntranet -%] [%- IF ( hold.found ) -%] - + [% IF hold.intransit %]Revert transit status[% ELSE %]Revert waiting status[% END %] [%- END -%] [% IF ( hold.intransit || hold.atdestination ) %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index f3073eec17..7dca1e83ba 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1489,6 +1489,7 @@ [% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] [% INCLUDE 'select2.inc' %] [% Asset.js("js/holds.js") | $raw%] + [% Asset.js("js/form-submit.js") | $raw%] [% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&biblionumber=") %] [% IF multi_hold %]