From 095f025a829440c0668b1e52751f93e4cb51f86a Mon Sep 17 00:00:00 2001 From: Martin Renvoize 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