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

(-)a/Koha/REST/Plugin/Pagination.pm (-2 / +1 lines)
Lines 63-69 If page size is omitted, it defaults to the value of the RESTdefaultPageSize sys Link Here
63
            my $total    = $args->{total};
63
            my $total    = $args->{total};
64
            my $req_page = $args->{params}->{_page};
64
            my $req_page = $args->{params}->{_page};
65
            my $per_page = $args->{params}->{_per_page} //
65
            my $per_page = $args->{params}->{_per_page} //
66
                            C4::Context->preference('RESTdefaultPageSize');
66
                            C4::Context->preference('RESTdefaultPageSize') // 20;
67
67
68
            # do we need to paginate?
68
            # do we need to paginate?
69
            return $c unless $req_page;
69
            return $c unless $req_page;
70
- 

Return to bug 19278