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>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
This commit is contained in:
Fridolin Somers 2020-03-02 18:03:54 +03:00 committed by Joy Nelson
parent 0c3b750f1a
commit e8bb094e5c
1 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@
[% INCLUDE display_bormessagepref %]
[% END %]
[% IF ( patron.debarred ) %]
[% IF ( patron.is_debarred ) %]
<li class="error">Patron is RESTRICTED</li>
[% END %]
@ -431,7 +431,7 @@
<li><a id="boremail" href="mailto:[% patron.email | html %]">[% patron.email | html %]</a></li>
[% END %]
[% IF ( patron.debarred ) %]
[% IF ( patron.is_debarred ) %]
<li class="error">Patron is RESTRICTED</li>
[% END %]
@ -601,7 +601,7 @@
[% INCLUDE display_bormessagepref %]
[% END %]
[% IF ( patron.debarred ) %]
[% IF ( patron.is_debarred ) %]
<li class="error">Patron is RESTRICTED</li>
[% END %]