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

(-)a/Koha/REST/V1/Patrons.pm (-3 / +2 lines)
Lines 44-51 sub list { Link Here
44
44
45
    return try {
45
    return try {
46
        my $patrons_set = Koha::Patrons->new;
46
        my $patrons_set = Koha::Patrons->new;
47
        my @patrons = $c->objects->search( $patrons_set )->as_list;
47
        my $patrons = $c->objects->search( $patrons_set );
48
        return $c->render( status => 200, openapi => \@patrons );
48
        return $c->render( status => 200, openapi => $patrons );
49
    }
49
    }
50
    catch {
50
    catch {
51
        if ( $_->isa('DBIx::Class::Exception') ) {
51
        if ( $_->isa('DBIx::Class::Exception') ) {
52
- 

Return to bug 16330