]> git.koha-community.org Git - koha.git/commit
Bug 21337: (QA follow-up) Rollback for partial delete
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 1 Oct 2018 07:52:21 +0000 (09:52 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 15 Oct 2018 14:12:55 +0000 (14:12 +0000)
commit936198ba6aebaace6d0bfab4f0d4667274872555
tree514297810afaf7b87f4a7dc63dc840d026d0d3f6
parent720d6360a0038a943b4554c4180cc0ebb61c2b4d
Bug 21337: (QA follow-up) Rollback for partial delete

Puts delete loop in a txn_do.
Raises Koha::Exceptions::Patron::Delete when Patron->delete does not return
true (like 0 or -1).
Unit test adjusted accordingly.

Note: A follow-up report for raising exceptions in Object->delete could well
be considered. Not here please.

Test plan:
Run t/db_dependent/Koha/Patrons.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Exceptions/Patron.pm [new file with mode: 0644]
Koha/Patrons.pm
t/db_dependent/Koha/Patrons.t