]> git.koha-community.org Git - koha.git/commit
Bug 27855: Make GET /patrons/:patron_id use objects.find
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 4 Mar 2021 09:43:01 +0000 (06:43 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Mar 2021 09:31:47 +0000 (10:31 +0100)
commitfa7a80a475792294da4116fc147c8a1201641ccb
tree5c4990b10af3166a9fb514dbb2f9f8284eea6896
parentf790ca45ab97dfdb630900603d4d7bf4c822c92d
Bug 27855: Make GET /patrons/:patron_id use objects.find

This patch makes the route for fetching a patron use the objects.find
helper instead of a plain Koha::Patrons->find. This gives the controller
embedding superpowers.

To test, we just need to check nothing broke:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Patrons.pm