From 11671eb70dd3841b11981cba8507bc055c749c50 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 1 Apr 2024 18:08:46 -0300 Subject: [PATCH] Bug 36482: Make embedding work for GET /libraries/:library_id Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Pedro Amorim --- Koha/REST/V1/Libraries.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Koha/REST/V1/Libraries.pm b/Koha/REST/V1/Libraries.pm index 492a3495c37..db0cb3011de 100644 --- a/Koha/REST/V1/Libraries.pm +++ b/Koha/REST/V1/Libraries.pm @@ -73,10 +73,9 @@ sub get { return $c->render( status => 200, - openapi => $library->to_api + openapi => $c->objects->to_api($library), ); - } - catch { + } catch { $c->unhandled_exception($_); }; } -- 2.44.0