Bugzilla – Attachment 150706 Details for
Bug 33262
When an ordered record is deleted, we lose all information on what was ordered
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33262: Add new field to REST API route for orders
Bug-33262-Add-new-field-to-REST-API-route-for-orde.patch (text/plain), 1.68 KB, created by
David Nind
on 2023-05-05 00:46:41 UTC
(
hide
)
Description:
Bug 33262: Add new field to REST API route for orders
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-05-05 00:46:41 UTC
Size:
1.68 KB
patch
obsolete
>From 8b52514ced5466c33d69f643029b0ff76d47a0e6 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >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 <david@davidnind.com> >--- > 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
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 33262
:
150647
|
150657
|
150658
|
150659
|
150660
|
150661
|
150662
|
150663
|
150664
|
150680
|
150681
|
150682
|
150683
|
150684
|
150702
|
150703
|
150704
|
150705
|
150706
|
150734
|
150735
|
150736
|
150737
|
150738