Bugzilla – Attachment 148137 Details for
Bug 32734
Add GET endpoint for listing Biblios
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32734: (QA follow-up) Make use of $c->objects->to_api
Bug-32734-QA-follow-up-Make-use-of-c-objects-toapi.patch (text/plain), 1.11 KB, created by
Tomás Cohen Arazi
on 2023-03-13 18:10:05 UTC
(
hide
)
Description:
Bug 32734: (QA follow-up) Make use of $c->objects->to_api
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2023-03-13 18:10:05 UTC
Size:
1.11 KB
patch
obsolete
>From c047ae79901d072135783d2ae26aa20fcf5cf5d4 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 13 Mar 2023 15:06:44 -0300 >Subject: [PATCH] Bug 32734: (QA follow-up) Make use of $c->objects->to_api > >This is using plain `$biblios->to_api` but as of bug 33080, the new >helper should be used instead. This patch fixes that. > >To test: >1. Run: > $ ktd --shell > k$ prove t/db_dependent/api/v1/biblios.t >=> SUCCESS: Tests pass! >2. Apply this patch >3. Repeat 1 >=> SUCCESS: Tests pass! > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/REST/V1/Biblios.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/REST/V1/Biblios.pm b/Koha/REST/V1/Biblios.pm >index c8d220e6dad..61332553a1a 100644 >--- a/Koha/REST/V1/Biblios.pm >+++ b/Koha/REST/V1/Biblios.pm >@@ -619,7 +619,7 @@ sub list { > if ( $c->req->headers->accept =~ m/application\/json(;.*)?$/ ) { > return $c->render( > status => 200, >- json => $biblios->to_api >+ json => $c->objects->to_api( $biblios ), > ); > } > elsif ( >-- >2.39.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 32734
:
146751
|
146804
|
146855
|
147476
|
148086
|
148124
|
148136
| 148137