From 642e4fd3038804ab1cb76ef218f91f9f438d032f 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 (cherry picked from commit 53722e6c3172d0e04d5e7b8d2576a93ddeded2f0) Signed-off-by: Lucas Gass --- 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 214d7fe69c..81dd56f70b 100644 --- a/Koha/Acquisition/Order.pm +++ b/Koha/Acquisition/Order.pm @@ -468,6 +468,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 fbe380f6f9..5df8374b25 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