Bug 14784: Fix checkin message for restricted patrons
authorShi Yao Wang <shi-yao.wang@inlibro.com>
Mon, 13 Jun 2022 18:05:53 +0000 (14:05 -0400)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 17 Jan 2023 09:29:27 +0000 (09:29 +0000)
commita05bb1e36dd8af51dd2a2039593a4303879bb62d
tree896033e64acf37d60f0afa98f6b6b49f77c74a45
parentbe569f1aa52ee18dd526b1da37c3baea46143dec
Bug 14784: Fix checkin message for restricted patrons

Test plan:
Before

1) Select a user with active indefinite or definite restrictions (manual restriction works)
2) Make sure finedays=0 for the user category. See [1]
3) Checkout and return an item (not overdue)
   A previous restriction reminder will appear
4) Checkout and return an overdue item (change the date at checkout)
   No previous restriction reminder will appear

After applying patch:
Same steps, but a reminder should appear for step 4)

[1] The "finedays" setting is called "Suspension in days" in the web interface, if you're searching for it like I did...

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Circulation.pm