[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
Fri Jul 7 00:24:37 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32801
Lucas Gass <lucas at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #153045|0 |1
is obsolete| |
--- Comment #4 from Lucas Gass <lucas at bywatersolutions.com> ---
Created attachment 153107
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153107&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>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list