Bugzilla – Attachment 137575 Details for
Bug 31128
Add effective_not_for_loan_status to API item objects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31128: Add effective_not_for_loan_status into items response
Bug-31128-Add-effectivenotforloanstatus-into-items.patch (text/plain), 730 bytes, created by
Nick Clemens (kidclamp)
on 2022-07-11 16:37:14 UTC
(
hide
)
Description:
Bug 31128: Add effective_not_for_loan_status into items response
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-07-11 16:37:14 UTC
Size:
730 bytes
patch
obsolete
>From 095f025a829440c0668b1e52751f93e4cb51f86a Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 11 Jul 2022 13:07:28 +0100 >Subject: [PATCH] Bug 31128: Add effective_not_for_loan_status into items > response > >--- > Koha/Item.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Item.pm b/Koha/Item.pm >index 42cb565f64..75323234a3 100644 >--- a/Koha/Item.pm >+++ b/Koha/Item.pm >@@ -1286,6 +1286,7 @@ sub to_api { > my $overrides = {}; > > $overrides->{effective_item_type_id} = $self->effective_itemtype; >+ $overrides->{effective_not_for_loan_status} = $self->notforloan ? $self->notforloan : $self->itemtype->notforloan; > > return { %$response, %$overrides }; > } >-- >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 31128
:
137507
|
137508
|
137574
|
137575
|
137576
|
137577
|
137593
|
137594
|
138023
|
138024