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

(-)a/Koha/REST/V1/Patrons/OldHolds.pm (-7 / +3 lines)
Lines 40-51 sub list { Link Here
40
40
41
    my $patron = Koha::Patrons->find( $c->param('patron_id') );
41
    my $patron = Koha::Patrons->find( $c->param('patron_id') );
42
42
43
    unless ( $patron ) {
43
    unless ($patron) {
44
        return $c->render(
44
        return $c->render(
45
            status  => 404,
45
            status  => 404,
46
            openapi => {
46
            openapi => { error => 'Patron not found' }
47
                error => 'Patron not found'
48
            }
49
        );
47
        );
50
    }
48
    }
51
49
Lines 57-64 sub list { Link Here
57
            status  => 200,
55
            status  => 200,
58
            openapi => $old_holds
56
            openapi => $old_holds
59
        );
57
        );
60
    }
58
    } catch {
61
    catch {
62
        $c->unhandled_exception($_);
59
        $c->unhandled_exception($_);
63
    };
60
    };
64
}
61
}
65
- 

Return to bug 35247