Bugzilla – Attachment 185992 Details for
Bug 36502
Independent branches should not prevent holds if canreservefromotherbranches is enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36502: Canreservefromotherbranches allows staff to place holds even if independent branches is enabled
Bug-36502-Canreservefromotherbranches-allows-staff.patch (text/plain), 1.14 KB, created by
Laura Escamilla
on 2025-08-30 01:31:26 UTC
(
hide
)
Description:
Bug 36502: Canreservefromotherbranches allows staff to place holds even if independent branches is enabled
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2025-08-30 01:31:26 UTC
Size:
1.14 KB
patch
obsolete
>From 640ce248d93143a9781fec064675a64d668cb68d Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >Date: Sat, 30 Aug 2025 01:28:02 +0000 >Subject: [PATCH] Bug 36502: Canreservefromotherbranches allows staff to place > holds even if independent branches is enabled > >--- > Koha/Items.pm | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/Koha/Items.pm b/Koha/Items.pm >index 7ac9f034ae..035f0e3197 100644 >--- a/Koha/Items.pm >+++ b/Koha/Items.pm >@@ -107,7 +107,12 @@ sub filter_by_for_hold { > withdrawn => 0, > notforloan => { '<=' => 0 }, # items with negative or zero notforloan value are holdable > ( C4::Context->preference('AllowHoldsOnDamagedItems') ? () : ( damaged => 0 ) ), >- ( C4::Context->only_my_library() ? ( homebranch => C4::Context::mybranch() ) : () ), >+ ( >+ C4::Context->only_my_library() >+ && !C4::Context->preference('canreservefromotherbranches') >+ ? ( homebranch => C4::Context::mybranch() ) >+ : () >+ ), > }; > > if ( C4::Context->preference("item-level_itypes") ) { >-- >2.39.5
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 36502
:
164376
|
164388
| 185992 |
185993