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

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

Return to bug 21460