Bugzilla – Attachment 127756 Details for
Bug 29506
objects.search should call search_limited if present
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29506: (follow-up) Adapt GET /patrons
Bug-29506-follow-up-Adapt-GET-patrons.patch (text/plain), 1.15 KB, created by
Martin Renvoize (ashimema)
on 2021-11-17 19:40:45 UTC
(
hide
)
Description:
Bug 29506: (follow-up) Adapt GET /patrons
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-11-17 19:40:45 UTC
Size:
1.15 KB
patch
obsolete
>From 577ab2063e215adf3b6d607db6c3ffc6ed2ea6e5 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 17 Nov 2021 14:57:26 -0300 >Subject: [PATCH] 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> >--- > Koha/REST/V1/Patrons.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm >index be00526b05..80b64ee963 100644 >--- a/Koha/REST/V1/Patrons.pm >+++ b/Koha/REST/V1/Patrons.pm >@@ -49,7 +49,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( >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29506
:
127751
|
127752
|
127753
|
127754
|
127755
|
127756
|
128668
|
128669
|
128670
|
129299
|
129300
|
129301