From 2da2005496e200c93182597e4b4ba246a215ee7b Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Wed, 10 Dec 2025 09:49:36 +0000 Subject: [PATCH] Bug 41420: Fix referrer in parcel.tt Test plan: Steps to reproduce : 1 - Go to http://localhost:8081/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=1&basketno=1 and fill in a new item. 2 - Visit http://localhost:8081/cgi-bin/koha/acqui/parcels.pl?booksellerid=1, type an invoice name and validate. Inspect both "Cancel order" and "Cancel order and catalog record". Notice the link in "Cancel order is broken" 3 - Apply patch 4 - Repeat 3 and notice the referrer is well formed. For a reason I ignore, it does not seem to have an impact on main, but on the 24.11 I tested, if you click on cancel order, after confirming the deletion and clicking on "ok", you will be asked again to confirm, however the deletion has been performed Signed-off-by: David Nind Signed-off-by: Kyle M Hall Signed-off-by: Laura Escamilla (cherry picked from commit 92353e5294b886cc77f5e1957e7160232d4e6441) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index 0d3d2a16ed..5c0c2e24d6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -617,7 +617,7 @@ else { result += '' + + '&del_biblio=1&referrer=/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid | uri %]">' + _("Cancel order and catalog record") + '
'; }