From 4a4b37a146fc841913e6709a0d31289171c7b52e Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 4 May 2023 15:06:45 +0000 Subject: [PATCH] Bug 33262: Add new field to REST API route for orders Without this patch the API driven list of pending orders on the order receive page was broken. With the patch, all should be well now. prove -v t/db_dependent/api/v1/acquisitions_orders.t Signed-off-by: David Nind Signed-off-by: Nick Clemens --- Koha/Acquisition/Order.pm | 1 + api/v1/swagger/definitions/order.yaml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Koha/Acquisition/Order.pm b/Koha/Acquisition/Order.pm index c73f977791..a365f3163a 100644 --- a/Koha/Acquisition/Order.pm +++ b/Koha/Acquisition/Order.pm @@ -602,6 +602,7 @@ sub to_api_mapping { return { basketno => 'basket_id', biblionumber => 'biblio_id', + deleted_biblionumber => 'deleted_biblio_id', budget_id => 'fund_id', budgetdate => undef, # unused cancellationreason => 'cancellation_reason', diff --git a/api/v1/swagger/definitions/order.yaml b/api/v1/swagger/definitions/order.yaml index 7cc3c14b42..2b53ad12dd 100644 --- a/api/v1/swagger/definitions/order.yaml +++ b/api/v1/swagger/definitions/order.yaml @@ -9,6 +9,11 @@ properties: - integer - "null" description: Identifier for the linked bibliographic record + deleted_biblio_id: + type: + - integer + - "null" + description: Identifier for the linked deleted bibliographic record created_by: type: - integer -- 2.30.2