Bugzilla – Attachment 156094 Details for
Bug 33074
ReservesControlBranch not taken into account in opac-reserve.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33074: Use Koha::Policy::Holds->holds_control_library
Bug-33074-Use-KohaPolicyHolds-holdscontrollibrary.patch (text/plain), 1.22 KB, created by
Jonathan Druart
on 2023-09-22 13:52:30 UTC
(
hide
)
Description:
Bug 33074: Use Koha::Policy::Holds->holds_control_library
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-09-22 13:52:30 UTC
Size:
1.22 KB
patch
obsolete
>From 5a44723b7395ba8179e3a99eb897aecd999c3357 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 22 Sep 2023 15:51:56 +0200 >Subject: [PATCH] Bug 33074: Use Koha::Policy::Holds->holds_control_library > >--- > opac/opac-reserve.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl >index 294b13e003c..98c3340ab33 100755 >--- a/opac/opac-reserve.pl >+++ b/opac/opac-reserve.pl >@@ -231,7 +231,7 @@ if ( $query->param('place_reserve') ) { > # When choosing a specific item, the default pickup library should be dictated by the default hold policy > if ( ! C4::Context->preference("OPACAllowUserToChooseBranch") && $item ) { > my $type = $item->effective_itemtype; >- my $reserves_control_branch = GetReservesControlBranch( $item->unblessed, $patron->unblessed ); >+ my $reserves_control_branch = Koha::Policy::Holds->holds_control_library( $item, $patron ); > my $rule = GetBranchItemRule( $reserves_control_branch, $type ); > > if ( $rule->{hold_fulfillment_policy} eq 'any' || $rule->{hold_fulfillment_policy} eq 'patrongroup' ) { >-- >2.25.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 33074
:
147426
|
154543
|
154992
|
156094
|
156366