Bug 30933: Change for patron->delete
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 20 Jun 2022 10:03:59 +0000 (10:03 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 20 Jul 2022 12:04:06 +0000 (09:04 -0300)
commitd5ba2b1c4f48f16bf37974deb4cd3e81c70d4d29
treef5a1e9f118b4fad215b9fd46a6897fc91edfeae7
parentfc5d9c013ee9887652fd00386fb24b07363d3d4d
Bug 30933: Change for patron->delete

Test plan:
Run t/db_dependent/Koha/Patrons.t
Set pref ListOwnershipUponPatronDeletion to transfer.
Set pref ListOwnerDesignated to some valid borrowernumber.
Pick a user with public or shared list, delete from interface.
Pick a user with public or shared list, delete by script. (*)
Verify in both cases that new list owner is the designated one.

(*) Tip: Create another branch. Move the patron to be deleted to that
branch. And delete by script with:
    misc/cronjobs/delete_patons.pl -c -v -library YOUR_CODE

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Patron.pm
t/db_dependent/Koha/Patrons.t