Bugzilla – Attachment 86867 Details for
Bug 21890
Allow forgotten password functionality to be limited by patron category
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21890: Handle can_reset_password on the staff interface
Bug-21890-Handle-canresetpassword-on-the-staff-int.patch (text/plain), 3.62 KB, created by
Liz Rea
on 2019-03-21 19:51:09 UTC
(
hide
)
Description:
Bug 21890: Handle can_reset_password on the staff interface
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-03-21 19:51:09 UTC
Size:
3.62 KB
patch
obsolete
>From 3be2d92432906ed7693e8f549e8cfa872ed112ce Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 31 Jan 2019 16:28:39 -0300 >Subject: [PATCH] Bug 21890: Handle can_reset_password on the staff interface > >This patch makes the staff interface handle the new flag when editing >the categories. I didn't add the flag to the list of categories table >because it makes it too big, but can be easily added if required by >users or QA. > >To test: >- Along with other patches from this bug, edit patron categories >=> SUCCESS: Notice the changes are correctly stored >- Sign off :-D > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > admin/categories.pl | 3 +++ > koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt | 12 ++++++++++++ > 2 files changed, 15 insertions(+) > >diff --git a/admin/categories.pl b/admin/categories.pl >index b6b6975a77..ba0d11e012 100755 >--- a/admin/categories.pl >+++ b/admin/categories.pl >@@ -92,6 +92,7 @@ elsif ( $op eq 'add_validate' ) { > my $BlockExpiredPatronOpacActions = $input->param('BlockExpiredPatronOpacActions'); > my $checkPrevCheckout = $input->param('checkprevcheckout'); > my $default_privacy = $input->param('default_privacy'); >+ my $can_reset_password = $input->param('can_reset_password'); > my @branches = grep { $_ ne q{} } $input->multi_param('branches'); > > my $is_a_modif = $input->param("is_a_modif"); >@@ -122,6 +123,7 @@ elsif ( $op eq 'add_validate' ) { > $category->BlockExpiredPatronOpacActions($BlockExpiredPatronOpacActions); > $category->checkprevcheckout($checkPrevCheckout); > $category->default_privacy($default_privacy); >+ $category->can_reset_password($can_reset_password); > eval { > $category->store; > $category->replace_branch_limitations( \@branches ); >@@ -148,6 +150,7 @@ elsif ( $op eq 'add_validate' ) { > BlockExpiredPatronOpacActions => $BlockExpiredPatronOpacActions, > checkprevcheckout => $checkPrevCheckout, > default_privacy => $default_privacy, >+ can_reset_password => $can_reset_password, > }); > eval { > $category->store; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >index a7ddf140c9..ff48b74927 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >@@ -165,6 +165,18 @@ > <span>Select <i>All branches</i> if this category type must to be displayed all the time. Otherwise select libraries you want to associate with this value. > </span> > </li> >+ <li> >+ <label for="can_reset_password">Password reset in OPAC: </label> >+ <select name="can_reset_password" id="can_reset_password"> >+ [% IF category.can_reset_password %] >+ <option value="0">Allowed</option> >+ <option value="1" selected="selected">Not allowed</option> >+ [% ELSE %] >+ <option value="0" selected="selected">Allowed</option> >+ <option value="1">Not allowed</option> >+ [% END %] >+ </select> >+ </li> > <li><label for="block_expired">Block expired patrons:</label> > <select name="BlockExpiredPatronOpacActions" id="block_expired"> > [% IF not category or category.BlockExpiredPatronOpacActions == -1%] >-- >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 21890
:
84595
|
84596
|
84597
|
84598
|
84631
|
84632
|
84633
|
84634
|
85001
|
85002
|
85003
|
85004
|
85005
|
85006
|
86843
|
86844
|
86845
|
86846
|
86847
|
86866
|
86867
|
86868
|
86869
|
86870
|
86911
|
87289
|
87290
|
87291
|
87292
|
87293
|
87294
|
87295