From c7a05b26bd8fef0300d97a6f386982b48604826a Mon Sep 17 00:00:00 2001 From: Andreas Jonsson 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