From e032586e3fa601e91c2f0b0725265ccfcc6fce2e Mon Sep 17 00:00:00 2001 From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> Date: Thu, 14 Jan 2021 14:39:08 +0200 Subject: [PATCH] Bug 27430: Use password minimum length for patron category on password hint Hint for password minimum length should use minimum length set for patron category not "minPasswordLength" value. To test: 1. Set "minPasswordLength" e.g. 6 2. Set "Patron" category minimum password length e.g. 4 3. Create new a patron. 4. Note that hint after password input field reads "Minimum password length: 6" 5. Apply patch. 6. Hint should now read "Minimum password length: 4". Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> --- koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 60aecfe116..ed87d1643d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1137,7 +1137,7 @@ legend:hover { [% IF ( ERROR_password_has_whitespaces ) %] <span class="required">Password has leading or trailing whitespaces</span> [% END %] - <div class="hint">Minimum password length: [% minPasswordLength | html %]</div> + <div class="hint">Minimum password length: [% patron.category.effective_min_password_length | html %]</div> </li> <li> -- 2.11.0