[Koha-bugs] [Bug 32801] /checkouts?checked_in=1 errors when itemnumber is null
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jul 11 23:50:14 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32801
Katrin Fischer <katrin.fischer at bsz-bw.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #153107|0 |1
is obsolete| |
--- Comment #5 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 153340
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153340&action=edit
Bug 32801: Prevent 500 on /checkouts
If checked_in flag is passed we return the "old checkouts". But if the
item has been deleted we explode with
"message":"Expected integer - got null.","path":"\/0\/item_id"
The specs should reflect that an item can have been deleted.
Test plan:
Hit the endpoint and confirm the above.
Can be done easily using curl:
curl -u koha:koha --request GET
'http://localhost:8081/api/v1/checkouts?patron_id=5&checked_in=1' --header
"Content-Type: application/json" | jq
Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list