]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 14 Aug 2019 02:06:40 +0000 (02:06 +0000)
commit5f7b2632d74d926deba136340e57654f36bf3787
treefac19a8d29c54756765a70599d9b41cbc8966235
parentdae6f1e9f02c87bb610128a0ed786170c94512f4
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>
(cherry picked from commit 5451e33184f7e8ac84a60ec36d377dd75d222fa2)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Circulation.pm
t/db_dependent/Circulation.t