[Koha-bugs] [Bug 29018] New: Deleting patrons from REST API doesn't do any checks or move to deletedborrowers
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Sep 14 17:16:33 CEST 2021
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: koha-bugs at lists.koha-community.org
Reporter: katrin.fischer at bsz-bw.de
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.
More information about the Koha-bugs
mailing list