Bug 34339: (QA follow-up) Replace new by search in Licenses

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2023-09-08 06:16:44 +00:00 committed by Tomas Cohen Arazi
parent dd8b3c3da7
commit 6f5915cf01
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -55,7 +55,7 @@ sub get {
my $c = shift->openapi->valid_input or return; my $c = shift->openapi->valid_input or return;
return try { 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) { unless ($license) {
return $c->render( return $c->render(