https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29018
Bug ID: 29018
Summary: Deleting patrons from REST API doesn't do any checks
or move to deletedborrowers
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
When deleting a patron via the REST API it doesn't block on
- has a guarantee
- has checkouts
- has pending fines
and it doesn't move the patron to deletedborrowers :(
It looks like the code around deleting patrons could do with a little work:
Patrons batch deletes appear to use:
https://git.koha-community.org/Koha-community/Koha/src/commit/42ce8c29960dc8d133f8403db31459bae810f8e1/C4/Members.pm#L367
Deleting a single patron from the account in staff has a lot of additional
checks in the .pl
https://git.koha-community.org/Koha-community/Koha/src/commit/9d6d641d1f8b77271800f43bc027b651f9aea52b/members/deletemem.pl
And then there are delete and move_to_deleted in Koha/Patron*
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
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/