Bugzilla – Attachment 191045 Details for
Bug 38666
Closed stack requests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38666: Make checked out closed stack items holdable
5bb4ed9.patch (text/plain), 1.49 KB, created by
Julian Maurice
on 2026-01-09 07:56:46 UTC
(
hide
)
Description:
Bug 38666: Make checked out closed stack items holdable
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2026-01-09 07:56:46 UTC
Size:
1.49 KB
patch
obsolete
>From 5bb4ed9601e3b828317b023ad64219b59faf62b5 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 8 Jan 2026 14:03:25 +0100 >Subject: [PATCH] Bug 38666: Make checked out closed stack items holdable > >--- > Koha/Items.pm | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > >diff --git a/Koha/Items.pm b/Koha/Items.pm >index 94f58ff54ea..2c966855fe2 100644 >--- a/Koha/Items.pm >+++ b/Koha/Items.pm >@@ -111,8 +111,11 @@ sub filter_by_for_hold { > -or => [ > { is_closed_stack => 0 }, > { >- is_closed_stack => 1, >- 'reserves.reserve_id' => { '!=', undef }, >+ is_closed_stack => 1, >+ -or => [ >+ { 'reserves.reserve_id' => { '!=', undef } }, >+ { 'issue.issue_id' => { '!=', undef } }, >+ ], > }, > ], > }; >@@ -124,7 +127,7 @@ sub filter_by_for_hold { > itype => { -not_in => \@hold_not_allowed_itypes }, > }, > { >- join => 'reserves', >+ join => [ 'issue', 'reserves' ], > } > ); > } else { >@@ -134,7 +137,7 @@ sub filter_by_for_hold { > 'biblioitem.itemtype' => { -not_in => \@hold_not_allowed_itypes }, > }, > { >- join => [ 'biblioitem', 'reserves' ], >+ join => [ 'biblioitem', 'issue', 'reserves' ], > } > ); > } >-- >2.47.3 >
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 38666
:
175354
|
175371
|
175372
|
175373
|
178977
|
178978
|
178979
|
179466
|
179467
|
179468
|
180309
|
180310
|
180311
|
180321
|
180322
|
180323
|
180822
|
180823
|
180824
|
187995
|
187996
|
187997
|
187998
|
191040
|
191041
|
191042
|
191043
|
191044
| 191045