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

Katrin Fischer <katrin.fisc...@bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #153107|0                           |1
        is obsolete|                            |

--- Comment #5 from Katrin Fischer <katrin.fisc...@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 <lu...@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer...@web.de>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
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