Bugzilla – Attachment 127774 Details for
Bug 29510
objects.find should call search_limited if present
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29510: (follow-up) Adapt GET /patrons/:patron_id
Bug-29510-follow-up-Adapt-GET-patronspatronid.patch (text/plain), 1.20 KB, created by
Martin Renvoize (ashimema)
on 2021-11-18 07:56:18 UTC
(
hide
)
Description:
Bug 29510: (follow-up) Adapt GET /patrons/:patron_id
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-11-18 07:56:18 UTC
Size:
1.20 KB
patch
obsolete
>From 230da5018ef634955b3f3daebb7e439c48471141 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 17 Nov 2021 18:09:02 -0300 >Subject: [PATCH] Bug 29510: (follow-up) Adapt GET /patrons/:patron_id > >This patch makes GET /patrons/:patron_id rely on this new behavior from the >objects.find 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 79a286783f..52f112fdf7 100644 >--- a/Koha/REST/V1/Patrons.pm >+++ b/Koha/REST/V1/Patrons.pm >@@ -73,7 +73,7 @@ sub get { > > return try { > my $patron_id = $c->validation->param('patron_id'); >- my $patron = $c->objects->find( scalar Koha::Patrons->search_limited, $patron_id ); >+ my $patron = $c->objects->find( scalar Koha::Patrons->new, $patron_id ); > > unless ($patron) { > 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 29510
:
127759
|
127760
|
127761
|
127772
|
127773
|
127774
|
161253
|
161254
|
161255
|
161477
|
161478
|
161479