[Koha-bugs] [Bug 29742] Make deletemem.pl use Koha::Patron->safe_to_delete

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 20 19:56:11 CET 2021


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 128799
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128799&action=edit
Bug 29742: Make deletemem.pl use Koha::Patron->safe_to_delete

This patch makes the deletemem.pl controller script reuse the
safe_to_delete method introduced by bug 29741.

This way, it will use the same logic as the rest of the Koha pieces,
like the API.

To test:
1. Verify this conditions make deletion be denied:
   - Has a guarantee
   - Is the system-defined anonymous patron
   - Has outstanding debits
   - Has items checked out
2. Verify that this conditions display relevant information when trying
   to delete the patron:
   - Has outstanding credit
   - Has holds placed
   - Has pending suggestions
3. Apply this patch
4. Repeat 1 and 2
=> SUCCESS: Things didn't change! [*]
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list