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

(-)a/Koha/REST/V1/Illrequests.pm (-9 / +7 lines)
Lines 53-66 sub list { Link Here
53
53
54
    # Get all requests
54
    # Get all requests
55
    # If necessary, only get those from a specified patron
55
    # If necessary, only get those from a specified patron
56
    my @requests;
56
    my @requests = Koha::Illrequests->search(
57
    if ($args->{borrowernumber}) {
57
        {
58
        @requests = Koha::Illrequests->search(
58
            $args->{borrowernumber}
59
            { borrowernumber => $args->{borrowernumber} }
59
            ? ( borrowernumber => $args->{borrowernumber} )
60
        );
60
            : ()
61
    } else {
61
        }
62
        @requests = Koha::Illrequests->as_list;
62
    )->as_list;
63
    }
64
63
65
    # Identify patrons & branches that
64
    # Identify patrons & branches that
66
    # we're going to need and get them
65
    # we're going to need and get them
67
- 

Return to bug 21460