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:
parent
dd8b3c3da7
commit
6f5915cf01
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue