https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41889
Bug ID: 41889
Summary: Checkouts api call for checked in items can fail if
the patron has been deleted
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Circulation
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected]
To recreate:
Checkout an item to a patron without anonymization and check it back in.
Do a call to your instance (may need to turn on api basic auth and just use
your credentials) that includes the date in question, see that you get a
result.
Delete the patron and send the call again, you'll get the error message at the
bottom of the comment.
This is a problem with third party report services.
{ktdurl}/api/v1/checkouts?q={"checkout_date":{">": "2026-01-24T00:00:00Z","<":
"2026-07-31T00:00:00Z"}}&checked_in=true&_per_page=5000&_page=1&_order_by=checkout_date
Recreated on main, seeing it back at least to old stable.
{
"errors": [
{
"message": "Expected integer - got null.",
"path": "/body/0/patron_id"
},
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
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/