From dbb02e99bf76ae269493792e48a65404e290ab29 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 Content-Type: text/plain; charset=utf-8 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 --- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 3 +++ members/moremember.pl | 1 + 2 files changed, 4 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 a88a98e..0d9618f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -133,6 +133,9 @@ [% IF ( lost ) %]
  • Patron's card has been reported lost.
  • [% 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 9f06882..f88db68 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -158,6 +158,7 @@ if ( $patron->is_debarred ) { $template->param( 'debarredcomment' => $data->{debarredcomment} ); } } +$template->param( flagged => 1 ) if $patron->account_locked; $data->{ "sex_".$data->{'sex'}."_p" } = 1 if defined $data->{sex}; -- 2.1.4