Bugzilla – Attachment 120768 Details for
Bug 28286
Place hold button not displayed when biblio has only Ordered items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28286: Replace < 1 with <= 0
Bug-28286-Replace--1-with--0.patch (text/plain), 861 bytes, created by
Jonathan Druart
on 2021-05-10 12:08:25 UTC
(
hide
)
Description:
Bug 28286: Replace < 1 with <= 0
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-05-10 12:08:25 UTC
Size:
861 bytes
patch
obsolete
>From e2034e3c3740ede4f8ae8413964f05b6db076b75 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 10 May 2021 14:07:14 +0200 >Subject: [PATCH] Bug 28286: Replace < 1 with <= 0 > >It's the same but read more natural >--- > Koha/Items.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Items.pm b/Koha/Items.pm >index b90105de3db..16479835536 100644 >--- a/Koha/Items.pm >+++ b/Koha/Items.pm >@@ -47,7 +47,7 @@ Return the items of the set that are holdable > > sub filter_by_for_hold { > my ($self) = @_; >- return $self->search( { notforloan => { '<' => 1 } } ); # items with negative or zero notforloan value are holdable >+ return $self->search( { notforloan => { '<=' => 0 } } ); # items with negative or zero notforloan value are holdable > } > > =head3 filter_by_visible_in_opac >-- >2.20.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 28286
:
120521
|
120618
|
120619
|
120668
|
120672
|
120674
|
120701
| 120768