[Koha-bugs] [Bug 27855] Allow embedding extended_attributes on /patrons routes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 4 10:55:56 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27855

--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 117662
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117662&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list