From 3f7ac4c118483b9ef08e683c87942652deecbf9e Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 2 Mar 2020 18:03:54 +0300 Subject: [PATCH] Bug 24777: Use patron.is_debarred instead of patron.debarred in return.tt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 29818882c9..13dac5f2b2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -89,7 +89,7 @@ [% INCLUDE display_bormessagepref %] [% END %] - [% IF ( patron.debarred ) %] + [% IF ( patron.is_debarred ) %]
  • Patron is RESTRICTED
  • [% END %] @@ -431,7 +431,7 @@
  • [% patron.email | html %]
  • [% END %] - [% IF ( patron.debarred ) %] + [% IF ( patron.is_debarred ) %]
  • Patron is RESTRICTED
  • [% END %] @@ -601,7 +601,7 @@ [% INCLUDE display_bormessagepref %] [% END %] - [% IF ( patron.debarred ) %] + [% IF ( patron.is_debarred ) %]
  • Patron is RESTRICTED
  • [% END %] -- 2.20.1