Koha/members
Emmi 07af7b228f
Bug 23219: Cancel patrons holds when patron delete
Currently deleting a patron deletes all their holds and leaves
no record to the "old_reserves" table.

 Steps to reproduce:
- Create a patron
- Add holds for patron
- Holds are recorded to "reserves" table
- Delete patron
- Confirm delete
=>Patron and all holds are deleted and no record of holds is
left in "old_reserves" table

This patch displays alert text notifying user that deleting patron
cancels all their holds. Holds are cancelled instead of deleting them.
This patch also writes stringified datetime to holds cancel log instead
of whole datetime object.

To test:
- Apply this patch
- Create a patron
- Add holds for patron
- Holds are recorded to "reserves" table
- Delete patron
- Alert text of holds is displayed
- Confirm patron delete
=> Patron is deleted, their holds are cancelled and moved to
"old_reserves" table

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nadine Pierre <nadine.pierre@inLibro.com>
Signed-off-by: Arthur Bousquet <arthur.bousquet@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-07-15 12:48:36 +01:00
..
accountline-details.pl
apikeys.pl
boraccount.pl
default_messageprefs.pl
deletemem.pl Bug 23219: Cancel patrons holds when patron delete 2019-07-15 12:48:36 +01:00
discharge.pl
discharges.pl
files.pl
guarantor_search.pl
holdshistory.pl
housebound.pl
ill-requests.pl
mancredit.pl Bug 22600: Add 'interface' to accountlines 2019-04-10 19:43:11 +00:00
maninvoice.pl
member-flags.pl
member-password.pl
member.pl
memberentry.pl Bug 23199: Koha::Patron->store must check 'uppercasesurname' syspref 2019-07-05 08:43:44 +01:00
members-home.pl
members-update-do.pl
members-update.pl
merge-patrons.pl
mod_debarment.pl
moremember.pl Bug 17492: (RM follow-up) Use more specific method name 2019-07-01 16:06:42 +01:00
notices.pl
patronimage.pl
pay.pl Bug 22600: Add 'interface' to accountlines 2019-04-10 19:43:11 +00:00
paycollect.pl Bug 21801: (follow-up) Use ->account 2019-07-04 13:56:31 +01:00
print_overdues.pl
printfeercpt.pl Bug 22761: Add ability to use print version of ACCOUNT_CREDIT slip 2019-05-10 14:11:32 +00:00
printinvoice.pl Bug 22809: Move "INVOICE" from template to a slip 2019-05-10 14:39:39 +00:00
printslip.pl
purchase-suggestions.pl
readingrec.pl
routing-lists.pl
setstatus.pl
statistics.pl Bug 21027: Fix checkout statistics if 1+ of the fields is not defined 2019-07-15 12:25:15 +01:00
summary-print.pl Bug 21013: Missing itemtype for checkut makes patron summary print explode 2019-04-10 20:09:50 +00:00
update-child.pl