Bug 29506: (follow-up) Adapt GET /patrons

This patch makes GET /patrons rely on this new behavior from the
objects.search helper.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons.t
=> SUCCESS: Tests pass!
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests still pass!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2021-11-17 14:57:26 -03:00 committed by Andrew Fuerste-Henry
parent eb358bf48f
commit 6cc0df2b9c
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ sub list {
$query->{debarred} = { '!=' => undef }
if $restricted;
my $patrons_rs = Koha::Patrons->search_limited($query);
my $patrons_rs = Koha::Patrons->search($query);
my $patrons = $c->objects->search( $patrons_rs );
return $c->render(