Bugzilla – Attachment 157976 Details for
Bug 34008
REST API: Add a list (GET) endpoint for itemtypes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34008: Remove explicit embed in controller.
Bug-34008-Remove-explicit-embed-in-controller.patch (text/plain), 848 bytes, created by
Andreas Jonsson
on 2023-10-27 10:00:57 UTC
(
hide
)
Description:
Bug 34008: Remove explicit embed in controller.
Filename:
MIME Type:
Creator:
Andreas Jonsson
Created:
2023-10-27 10:00:57 UTC
Size:
848 bytes
patch
obsolete
>From c7a05b26bd8fef0300d97a6f386982b48604826a Mon Sep 17 00:00:00 2001 >From: Andreas Jonsson <andreas.jonsson@kreablo.se> >Date: Fri, 27 Oct 2023 11:08:56 +0200 >Subject: [PATCH] Bug 34008: Remove explicit embed in controller. > >--- > Koha/REST/V1/ItemTypes.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/REST/V1/ItemTypes.pm b/Koha/REST/V1/ItemTypes.pm >index d94ec156a5..91de0c4d0f 100644 >--- a/Koha/REST/V1/ItemTypes.pm >+++ b/Koha/REST/V1/ItemTypes.pm >@@ -36,7 +36,7 @@ sub list { > > return try { > my $itemtypes_set = Koha::ItemTypes->new; >- my $itemtypes = $c->objects->search( $itemtypes_set, { embed => $c->stash('koha.embed') } ); >+ my $itemtypes = $c->objects->search( $itemtypes_set ); > > return $c->render( status => 200, openapi => $itemtypes ); > } catch { >-- >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 34008
:
155734
|
155737
|
155738
|
155739
|
155741
|
157915
|
157976
|
157977
|
158082
|
158083
|
158084