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

(-)a/Koha/REST/Plugin/Objects.pm (+4 lines)
Lines 182-187 shouldn't be called twice in it. Link Here
182
                $filtered_params = $c->merge_q_params( $filtered_params, $query_params, $result_set );
182
                $filtered_params = $c->merge_q_params( $filtered_params, $query_params, $result_set );
183
            }
183
            }
184
184
185
            # request sequence id (i.e. 'draw' Datatables parameter)
186
            $c->res->headers->add( 'x-koha-request-id' => $reserved_params->{'x-koha-request-id'} )
187
              if $reserved_params->{'x-koha-request-id'};
188
185
            # If search_limited exists, use it
189
            # If search_limited exists, use it
186
            $result_set = $result_set->search_limited,
190
            $result_set = $result_set->search_limited,
187
                if $result_set->can('search_limited');
191
                if $result_set->can('search_limited');
(-)a/Koha/REST/Plugin/Query.pm (-2 / +1 lines)
Lines 310-316 reference: https://metacpan.org/changes/distribution/JSON-Validator#L14 Link Here
310
310
311
sub _reserved_words {
311
sub _reserved_words {
312
312
313
    my @reserved_words = qw( _match _order_by _order_by[] _page _per_page q query x-koha-query);
313
    my @reserved_words = qw( _match _order_by _order_by[] _page _per_page q query x-koha-query x-koha-request-id );
314
    return \@reserved_words;
314
    return \@reserved_words;
315
}
315
}
316
316
317
- 

Return to bug 30394