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

--- Comment #2 from Jonathan Druart <jonathan.druart+k...@gmail.com> ---
Created attachment 153045
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153045&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

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to