From aff4f1ceea91ff3aedf4f9f87996678944eaec56 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 Signed-off-by: Phil Ringnalda --- C4/Reserves.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 0e2dc9c055..c0ba53c28c 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -47,6 +47,7 @@ use Koha::Libraries; use Koha::Patrons; use Koha::Plugins; use Koha::Policy::Holds; +use Data::Dumper; use List::MoreUtils qw( any ); @@ -1794,7 +1795,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.44.0