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

(-)a/Koha/REST/Plugin/Query.pm (-1 / +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 x-koha-request-id );
313
    my @reserved_words = qw( _match _order_by _order_by[] _page _per_page q query x-koha-query x-koha-request-id x-koha-embed);
314
    return \@reserved_words;
314
    return \@reserved_words;
315
}
315
}
316
316
(-)a/t/db_dependent/api/v1/acquisitions_orders.t (-2 / +1 lines)
Lines 113-119 subtest 'list() tests' => sub { Link Here
113
    my $query = { "biblio.isbn" => { "-like" => "\%SOMETHING\%" } };
113
    my $query = { "biblio.isbn" => { "-like" => "\%SOMETHING\%" } };
114
114
115
    $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?q=" . encode_json($query) => {'x-koha-embed' => 'biblio'} )
115
    $t->get_ok( "//$userid:$password@/api/v1/acquisitions/orders?q=" . encode_json($query) => {'x-koha-embed' => 'biblio'} )
116
      ->status_is( 200, "Embeddig biblio.isbn doesn't make it explode" )
116
      ->status_is( 200, "Embedding biblio and searching on biblio.isbn doesn't make it explode" )
117
      ->json_has( "/0/biblio", "biblio object correctly embedded" )
117
      ->json_has( "/0/biblio", "biblio object correctly embedded" )
118
      ->json_is( "/0/biblio/isbn", 'SOMETHING', 'Filtering by a biblioitems column works!' );
118
      ->json_is( "/0/biblio/isbn", 'SOMETHING', 'Filtering by a biblioitems column works!' );
119
119
120
- 

Return to bug 29810