]> git.koha-community.org Git - koha.git/commit
Bug 23103: Cannot checkin items lost by deleted patrons with fines attached
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 12 Jun 2019 19:08:08 +0000 (15:08 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 16 Jul 2019 06:24:46 +0000 (08:24 +0200)
commit5451e33184f7e8ac84a60ec36d377dd75d222fa2
tree37af87c56fd20a387c1a462a7746fd389e542698
parent4b0602e77044f280982c8dcb07b3ca33a0f29b4f
Bug 23103: Cannot checkin items lost by deleted patrons with fines attached

Test Plan:
1) Checkout an item to a patron
2) Ensure the item has a replacement cost (or itemtype has default)
3) Ensure patrons are charged when items lost
4) Mark the item lost
5) Confirm patron has a fine
6) Write off the fine
7) Delete the patron
8) Check in the item
9) Note the internal server error
10) Apply this patch
11) Repeat steps 1-8
12) Note there is no internal server error!
13) prove t/db_dependent/Circulation.t

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit d2a2e4a8d52c2098dd183e6714b03aed5b6a84bb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm
t/db_dependent/Circulation.t