Bugzilla – Attachment 115233 Details for
Bug 27430
Use minimum length for patron category on password hint
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27430: Change password minimum value hint when patron category is changed
0001-Bug-27430-Change-password-minimum-value-hint.patch (text/plain), 2.37 KB, created by
Emmi Takkinen
on 2021-01-18 09:22:38 UTC
(
hide
)
Description:
Bug 27430: Change password minimum value hint when patron category is changed
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2021-01-18 09:22:38 UTC
Size:
2.37 KB
patch
obsolete
>From 71fb084ed00607ee5d1f76a96f732bb3372cb314 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Mon, 18 Jan 2021 11:20:06 +0200 >Subject: [PATCH] Bug 27430: Change password minimum value hint when patron > category is changed > >If patrons category is changed during add or edit password >minimum value doesn't change. This patch adds ajax call to >fix this. > >To test: >1. Add password minimum length for patron >categories A and B. >2. Create a new patron with category A. >3. Change patrons category to B. >4. Note that password minimum value doesn't change >on hint text. >5. Apply patch. >6. Repeat patron creation, password minimum value >should now change correctly. >--- > .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 1 + > koha-tmpl/intranet-tmpl/prog/js/members.js | 6 ++++++ > 2 files changed, 7 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index ed87d1643d..e63e97e347 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -1705,6 +1705,7 @@ legend:hover { > var LABEL_SET_TO_PATRON = _("Set to patron"); > var LABEL_AGE = _("Age"); > var MSG_MESSAGING_DFEAULTS = _("Change messaging preferences to default for this category?"); >+ var MSG_PASSWORD_LENGTH = _("Minimum password length: %s"); > > [% IF quickadd && opadd && !check_member %] > $(document).ready(function () { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js >index f38870cc48..a24a7264d0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/members.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/members.js >@@ -73,6 +73,12 @@ function update_category_code(category_code) { > $(mytables).find("li").hide(); > $(mytables).find(" li[data-category_code='"+category_code+"']").show(); > $(mytables).find(" li[data-category_code='']").show(); >+ >+ //Change password length hint >+ var hint = $("#password").siblings(".hint").first(); >+ var min_length = $('select'+category_selector+' option:selected').data('pwdLength'); >+ var hint_string = MSG_PASSWORD_LENGTH.format(min_length); >+ hint.html(hint_string); > } > > function select_user(borrowernumber, borrower, relationship) { >-- >2.25.1 >
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 27430
:
115154
|
115157
|
115226
|
115233
|
115316
|
115317
|
116105
|
116106
|
116107