Bugzilla – Attachment 172709 Details for
Bug 33200
IndependentBranchesTransfers does not prevent holds from creating transfers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33200: (fix) remove SuperLibrarian check from Reserves.pm
Bug-33200-fix-remove-SuperLibrarian-check-from-Res.patch (text/plain), 1.16 KB, created by
Sukhmandeep
on 2024-10-11 20:37:01 UTC
(
hide
)
Description:
Bug 33200: (fix) remove SuperLibrarian check from Reserves.pm
Filename:
MIME Type:
Creator:
Sukhmandeep
Created:
2024-10-11 20:37:01 UTC
Size:
1.16 KB
patch
obsolete
>From 1cdf883521d0d3d15a1959fa867153c2a0dd3ec0 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >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 <phil@chetcolibrary.org> >--- > C4/Reserves.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index e1191dea2f..5e54488d37 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 ); > >@@ -1771,7 +1772,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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33200
:
148212
|
148484
|
148918
|
151129
|
151130
|
151348
|
151349
|
154552
|
155482
|
155483
|
155484
|
158188
|
158189
|
158190
|
171434
|
171435
|
171436
|
172707
|
172708
|
172709
|
180598
|
183302
|
183304