Bug 24777: Use patron.is_debarred instead of patron.debarred in return.tt
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 2 Mar 2020 15:03:54 +0000 (18:03 +0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 10 Mar 2020 15:20:19 +0000 (15:20 +0000)
commit03013acc2ed908a41415c3def0c72e888d4e5d00
treed5f1d069a33dcde58b3f24564c6f61a6e48fb265
parent6fc8d02995b7c5c085c913bde6af3fcd24536107
Bug 24777: Use patron.is_debarred instead of patron.debarred in return.tt

In return page return.tt, when there is an hold message, patron is said as restricted even if restriction end date is in the past.

Test plan :
1) For a patron Jon Doe create a manual restriction with end date in the past
2) Create an hold for this patron on an item
3) Check in this item => You don't see message "Patron is RESTRICTED"
4) For a patron Kevin Doe create a manual restriction with end date in the future
5) Create an hold for this patron on an item
6) Check in this item => You see message "Patron is RESTRICTED"
7) Repeate 1-6 with system preference HoldsAutoFill enabled
8) Repeate 1-6 with a waiting hold

Signed-off-by: Nazlı Çetin <nazli@devinim.com.tr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt