From 95dcfbaefc3c1d6bf0782da713fa8b836c6f9717 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 10 Oct 2018 16:53:30 +0200 Subject: [PATCH] Bug 21312: Show lockout on Patrons form Just what the title says :) Specifically: moremember.pl Test plan: Check if you see the locked message on the patron form for an account that has been locked. (Either login_attempts<0 or >FailedLoginAttempts) Signed-off-by: Marcel de Rooy Signed-off-by: Jose-Mario Monteiro-Santos Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 4 ++++ members/moremember.pl | 1 + 2 files changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index d14e1bdde6..79bcd49237 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -151,6 +151,10 @@ Renew or Edit details [% END %] + + [% IF patron.account_locked %] +
  • Account has been [% IF patron.login_attempts < 0 %]administratively [% END %]locked out.
  • + [% END %] [% END %] diff --git a/members/moremember.pl b/members/moremember.pl index a874c2d1c9..1f63180e58 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -96,6 +96,7 @@ if ( $patron->is_debarred ) { $template->param( 'userdebarreddate' => $patron->debarred ); } } +$template->param( flagged => 1 ) if $patron->account_locked; my @relatives; if ( my $guarantor = $patron->guarantor ) { -- 2.20.1