From a03e6bb607fa40b1181345e3d1f10a5ab15209a0 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 25 Oct 2024 10:21:57 -0400 Subject: [PATCH] Bug 35721: (QA follow-up) replace find() with pickup_library() Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index 8a21788954..99ab42db29 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -172,7 +172,7 @@ if ( $query->param('reserve_id') && $op eq 'cud-affect_reserve') { my $hold = Koha::Holds->find($reserve_id); if ($diffBranchSend) { - my $tobranch = Koha::Libraries->find( $hold->branchcode ); + my $tobranch = $hold->pickup_library(); # Add transfer, enqueue if one is already in the queue, and immediately set to in transit my $transfer = $item->request_transfer( { to => $tobranch, reason => 'Reserve', enqueue => 1 } ); -- 2.39.5