From 5e38bb9d9613c34c874e6adfe195c495d410947e Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Thu, 17 Aug 2023 12:14:46 +0000 Subject: [PATCH] Bug 33200: (fix) remove SuperLibrarian check from Reserves.pm --- C4/Reserves.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 382363fc1a..8944d13f0c 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -48,6 +48,7 @@ use Koha::Old::Holds; use Koha::Patrons; use Koha::Plugins; use Koha::Policy::Holds; +use Data::Dumper; use List::MoreUtils qw( any ); @@ -1802,7 +1803,8 @@ fields from the reserves table of the Koha database, plus sub _FilterHoldsForIndependentBranches { my ( @reserves) = @_; - if ( C4::Context->preference("IndependentBranchesTransfers") && !C4::Context->IsSuperLibrarian() && scalar @reserves) { + if ( C4::Context->preference("IndependentBranchesTransfers") && scalar @reserves) + { my @results; foreach my $res (@reserves) { push( @results, $res ) if ($res->{branchcode} eq C4::Context->userenv->{'branch'}); -- 2.34.1