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:
parent
eb358bf48f
commit
6cc0df2b9c
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue