From 53722e6c3172d0e04d5e7b8d2576a93ddeded2f0 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 Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 4ab67c196debf387f2053c3916f4cdac76901db3) Signed-off-by: Martin Renvoize --- 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 b9059b0132..7d97113d85 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 b6c6a7b87d..699d8ddeae 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.39.5