Bugzilla – Attachment 171436 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
Phil Ringnalda
on 2024-09-13 01:45:43 UTC
(
hide
)
Description:
Bug 33200: (fix) remove SuperLibrarian check from Reserves.pm
Filename:
MIME Type:
Creator:
Phil Ringnalda
Created:
2024-09-13 01:45:43 UTC
Size:
1.16 KB
patch
obsolete
>From aff4f1ceea91ff3aedf4f9f87996678944eaec56 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 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
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