From abff9a9cd8fb82bafe5bc38f44a030950fb6e86e Mon Sep 17 00:00:00 2001 From: Blou Date: Mon, 2 Nov 2020 14:24:50 -0500 Subject: [PATCH] Bug 26900: Fixes Koka::Libraries typo in C4/Reserves.pm Plain simple: my $home_library = Koka::Libraries->find( {branchcode => $item->homebranch} ); This patch replaces 'Koka' by 'Koha'. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 3dee550e346d8a998335eb7ce77b4a064a1d129a) Signed-off-by: Lucas Gass --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index f16dd57679..1ca85ebe01 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1289,7 +1289,7 @@ sub IsAvailableForItemLevelRequest { GetReservesControlBranch( $item->unblessed(), $patron->unblessed() ); my $branchitemrule = C4::Circulation::GetBranchItemRule( $reserves_control_branch, $item->itype ); - my $home_library = Koka::Libraries->find( {branchcode => $item->homebranch} ); + my $home_library = Koha::Libraries->find( {branchcode => $item->homebranch} ); return 0 unless $branchitemrule->{hold_fulfillment_policy} ne 'holdgroup' || $home_library->validate_hold_sibling( {branchcode => $pickup_branchcode} ); } -- 2.39.5