Bugzilla – Attachment 164388 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.92 KB, created by
ByWater Sandboxes
on 2024-04-03 18:53:34 UTC
(
hide
)
Description:
Bug 36502: Canreservefromotherbranches allows staff to place holds even if independent branches is enabled
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2024-04-03 18:53:34 UTC
Size:
1.92 KB
patch
obsolete
>From 3a54432c226493ff43dd1a7a445c7b6923fda7ce Mon Sep 17 00:00:00 2001 >From: Laura Escamilla <laura.escamilla@bywatersolutions.com> >Date: Wed, 3 Apr 2024 12:55:29 +0000 >Subject: [PATCH] Bug 36502: Canreservefromotherbranches allows staff to place > holds even if independent branches is enabled >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: > >1. Enable both the IndependentBranches and canreservefromotherbranches system preferences. >2. Log in to the staff interface with a non-super librarian staff user that has permissions to place holds. >3. Search the catalog for an item. > 1. The non-super librarian user should be able to place holds on item from their branch. > 2. They should see a âNo holds allowedâ on items from other branches. >4. Apply the patch and restart_all >5. Repeat step 3 or refresh the page. > 1. The non-super librarian can now place holds on items from their branch and other branches. >6. Turn off canreservefromotherbranches > 1. The non-super librarian cannot place holds on items from other branches again. >7. Sign off and have a great day! :D > >Signed-off-by: esther <esther@bywatersolutions.com> >--- > Koha/Items.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Items.pm b/Koha/Items.pm >index 4089068b34..3c6e49c180 100644 >--- a/Koha/Items.pm >+++ b/Koha/Items.pm >@@ -76,7 +76,7 @@ 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.30.2
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