diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm index fc13b37f82..9abc855ef1 100644 --- a/Koha/REST/Plugin/Objects.pm +++ b/Koha/REST/Plugin/Objects.pm @@ -86,6 +86,9 @@ The result object can then be used for further processing. } ); + $result_set = $result_set->search_limited + if $result_set->can('search_limited'); + my $object = $result_set->find( $id, $attributes ); return $object;