From 6f5915cf01b711d3a20af2634c9eb2a07d1bd289 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 8 Sep 2023 06:16:44 +0000 Subject: [PATCH] Bug 34339: (QA follow-up) Replace new by search in Licenses Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- Koha/REST/V1/ERM/Licenses.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/V1/ERM/Licenses.pm b/Koha/REST/V1/ERM/Licenses.pm index 9408dfecae..616c10331c 100644 --- a/Koha/REST/V1/ERM/Licenses.pm +++ b/Koha/REST/V1/ERM/Licenses.pm @@ -55,7 +55,7 @@ sub get { my $c = shift->openapi->valid_input or return; return try { - my $license = $c->objects->find( Koha::ERM::Licenses->new, $c->param('license_id') ); + my $license = $c->objects->find( Koha::ERM::Licenses->search, $c->param('license_id') ); unless ($license) { return $c->render(