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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 21 Jun 2019 11:37:21 +0000 (12:37 +0100)
commitd2a2e4a8d52c2098dd183e6714b03aed5b6a84bb
treed750269a24e2d5d3702e77e63b9c2f13093e1eb6
parent90d4e3a672e8778e30058fe691f83d94b6d379ce
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>
C4/Circulation.pm
t/db_dependent/Circulation.t