From cf682fa445ffb42fe062164b796cf25c1a790876 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() --- circ/returns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index 8a217889542..99ab42db290 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 (Apple Git-154)