Bugzilla – Attachment 59676 Details for
Bug 18015
On shelf holds allowed > "If all unavailable" ignores notforloan
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18015 - On shelf holds allowed > "If all unavailable" ignores notforloan
Bug-18015---On-shelf-holds-allowed--If-all-unavail.patch (text/plain), 1.41 KB, created by
Jonathan Druart
on 2017-01-31 10:05:26 UTC
(
hide
)
Description:
Bug 18015 - On shelf holds allowed > "If all unavailable" ignores notforloan
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-01-31 10:05:26 UTC
Size:
1.41 KB
patch
obsolete
>From 5f5221d77f0af9da59163edeb4a26b21e147266a Mon Sep 17 00:00:00 2001 >From: Mirko Tietgen <mirko@abunchofthings.net> >Date: Mon, 30 Jan 2017 15:59:59 +0100 >Subject: [PATCH] Bug 18015 - On shelf holds allowed > "If all unavailable" > ignores notforloan > >If in the circ rules matrix you set "On shelf holds allowed" to "If all unavailable", >items with status "Not for loan" are considered available and break the functionality. > >Test plan: > >- Set "On shelf holds allowed" to "If all unavailable" for your patron and item > category (or everyone and everything) >- Have two items for a record. Check out one >- Set 7 - Not for loan: "Not For Loan" for the second item >- Try to place a hold. Does not work. > >- Apply the patch >- Try to place a hold. Should work now. > >Signed-off-by: Claire Gravely <claire_gravely@hotmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Reserves.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 3f124a6..c078af1 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -1514,7 +1514,7 @@ sub IsAvailableForItemLevelRequest { > foreach my $i (@items) { > $any_available = 1 > unless $i->itemlost >- || $i->{notforloan} > 0 >+ || $i->notforloan > 0 > || $i->withdrawn > || $i->onloan > || IsItemOnHoldAndFound( $i->id ) >-- >2.1.4
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 18015
:
59646
|
59649
| 59676