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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 25 Jan 2023 14:39:04 +0000 (14:39 +0000)
commit54976b2ea58659681e88f80d622ca0af0157e6fb
tree6fa14b177b6315d44ecb144de4a199c226b2720f
parentaf6d8d73af8b64b6d8279b66bcf77f434cb8186a
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>
(cherry picked from commit a05bb1e36dd8af51dd2a2039593a4303879bb62d)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
C4/Circulation.pm