]> git.koha-community.org Git - koha.git/commit
Bug 27626: Fix self registration if categorycode is hidden and PatronSelfRegistration...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 4 Feb 2021 16:37:26 +0000 (17:37 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 25 Feb 2021 09:30:52 +0000 (10:30 +0100)
commit2b021df3e2630d98ed6a72f32d3e7d63c8159aa6
tree1840f5aea42f0a6abcda19a6777b6d43d6cba907
parent5047073121369e0b4f6d30b448ec6ee6c1cde444
Bug 27626: Fix self registration if categorycode is hidden and PatronSelfRegistrationVerifyByEmail

If categorycode is selected in
PatronSelfRegistrationBorrowerUnwantedField and
PatronSelfRegistrationVerifyByEmail is turned on, the patron self registration
fails with

   [You must provide a patron's category to validate password's strength
   and length] at /usr/share/perl5/Exception/Class/Base.pm line 88

Test plan:
0. Select categorycode in PatronSelfRegistrationBorrowerUnwantedField
   and turn on PatronSelfRegistrationVerifyByEmail
1. Self register a patron
2. Confirm that it works as expected with this patch applied.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 74ae74d5faec9a4ba4fbf573b4a81b1274402773)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-memberentry.pl