]> git.koha-community.org Git - koha.git/commit
Bug 27544: Simplify GET /checkouts implementation
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 25 Jan 2021 13:35:20 +0000 (10:35 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Jan 2021 15:41:20 +0000 (16:41 +0100)
commit316dc934d3a792bc233d71372f41d9800fbd73b3
tree251ff4ee73e7a813e10eabf1b77833d9b5b14917
parentfcd336168300b453749d5ec12355a74fd4ff57f3
Bug 27544: Simplify GET /checkouts implementation

This patch makes the list() controller method simpler, by removing the
checked_in parameter, and passing the appropriate restulset.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/checkouts.t
=> SUCCESS: Tests pass!
2. Apply this patch
3. Repeat (1)
=> SUCCESS: Tests still pass! (no behaviour change)
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Checkouts.pm