Bugzilla – Attachment 154552 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.10 KB, created by
Hammat wele
on 2023-08-17 12:15:30 UTC
(
hide
)
Description:
Bug 33200: (fix) remove SuperLibrarian check from Reserves.pm
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2023-08-17 12:15:30 UTC
Size:
1.10 KB
patch
obsolete
>From dbfd4f020ac3a9959a0da6d424635cd392a77913 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 > >--- > C4/Reserves.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 83c5a0cb56..c00df1d20e 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -47,6 +47,7 @@ use Koha::Libraries; > use Koha::Old::Holds; > use Koha::Patrons; > use Koha::Plugins; >+use Data::Dumper; > > use List::MoreUtils qw( any ); > >@@ -1843,7 +1844,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