From 5cb5712dfc7e6f95461f644608a4de776cea933f Mon Sep 17 00:00:00 2001
From: Baptiste Wojtkowski <bski@laposte.net>
Date: Thu, 21 Nov 2024 15:59:04 +0100
Subject: [PATCH] Bug 38509: [22.11] Displayed transfer destination is
 incorrect when a reservation has been found

TEST PLAN FOR 22.11

1 - Place a hold for Henry Acevedo on "39999000001334" (item level), ask for a pickup at centerville
2 - At centerville, transfer the document to fairfield. There will be an array giving you three choices. The first one is "transfer to centerville", which is not the behaviour of the button (the behaviour is correct, we want to perform the transfer and ignore the reservation).
APPLY PATCH
3 - At centerville, transfer the document to fairfield. There will be a pop-up giving you three choices. The first one is "transfer to fairfield", which is not the behaviour or the button.
---
 koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt
index 563aee1..4810554 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt
@@ -54,7 +54,7 @@
         <tr>
             <th>
                 [% IF ( reserved ) %]
-                        Transfer item to [% Branches.GetName( hold.branchcode ) | html %]:
+                        Transfer item to [% Branches.GetName( tobranccd ) | html %]:
                 [% END %]
                 [% IF ( waiting or transferred ) %]Cancel hold and then attempt transfer: [% END %]
             </th>
-- 
2.30.2