]> git.koha-community.org Git - koha.git/commit
Bug 18936: (follow-up) Fix checkouts endpoint and its tests
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Wed, 29 Jan 2020 14:06:00 +0000 (14:06 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 4 Feb 2020 09:56:30 +0000 (09:56 +0000)
commit8fd9ff1730b321dc80ae92a127aced3187b2f43e
tree21a0077e553ca91b5b117b0698b3b91ddb59df2b
parentd3d6df99b89b0e888d83391b3e687db59ddbb822
Bug 18936: (follow-up) Fix checkouts endpoint and its tests

- Fixes a bug caused by the refactoring in
Koha/REST/V1/Checkouts.pm (run the tests without this patch and you
will see the tests fails because 'rule_name' parameter was
forgotten).

- Changes the tests to use the new Koha::CirculationRule objects
  instead of directly using issuingrules DB table

Signed-off-by: Minna Kivinen <minna.kivinen@hamk.fi>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Checkouts.pm
t/db_dependent/api/v1/checkouts.t