View | Details | Raw Unified | Return to bug 34339
Collapse All | Expand All

(-)a/Koha/REST/V1/ERM/Licenses.pm (-2 / +1 lines)
Lines 55-61 sub get { Link Here
55
    my $c = shift->openapi->valid_input or return;
55
    my $c = shift->openapi->valid_input or return;
56
56
57
    return try {
57
    return try {
58
        my $license = $c->objects->find( Koha::ERM::Licenses->new, $c->param('license_id') );
58
        my $license = $c->objects->find( Koha::ERM::Licenses->search, $c->param('license_id') );
59
59
60
        unless ($license) {
60
        unless ($license) {
61
            return $c->render(
61
            return $c->render(
62
- 

Return to bug 34339