Bugzilla – Attachment 88346 Details for
Bug 21312
Show lockout on Patrons form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21312: Show lockout on Patrons form
Bug-21312-Show-lockout-on-Patrons-form.patch (text/plain), 2.37 KB, created by
Marcel de Rooy
on 2019-04-19 10:14:49 UTC
(
hide
)
Description:
Bug 21312: Show lockout on Patrons form
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-04-19 10:14:49 UTC
Size:
2.37 KB
patch
obsolete
>From 121d2e2d89699db7a1138ba4164eee0bdd729bfd Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >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 <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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 fc93db3b45..14076d5e26 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -149,6 +149,10 @@ > <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | uri %]&reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&borrowernumber=[% patron.borrowernumber | html %]&categorycode=[% categorycode | html %]">Edit details</a> > </li> > [% END %] >+ >+ [% IF patron.account_locked %] >+ <li class="blocker">Account has been [% IF patron.login_attempts < 0 %]administratively [% END %]locked out.</li> >+ [% END %] > </ul> > </div> > [% END %] >diff --git a/members/moremember.pl b/members/moremember.pl >index be365a3c06..3b20362c05 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.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21312
:
80385
|
84218
|
84246
|
84247
|
88346
|
88347
|
89312
|
89313