]> git.koha-community.org Git - koha.git/commit
Bug 16707: Fix software error in OPAC password recovery when leaving form fields...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 11 Jun 2016 14:27:04 +0000 (15:27 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Mon, 1 Aug 2016 06:57:21 +0000 (08:57 +0200)
commit787720de69d870d8e229171c9b7acb3ab8917e53
treef0ee678b51857cad8f088980ab61b6d4511823d4
parent47e39d6ce732e9923b7e00cda73efd2f7d9964ca
Bug 16707: Fix software error in OPAC password recovery when leaving form fields empty

The $search_results is considered as an arrayref but is not defined if
no patron matches the recovery infos.

Test plan:
- Set syspref OpacResetPassword to "Allow"
- Go to OPAC
- Click link "Forgot your password?
- On the following screen "Forgotten password recovery", do not fill in
  form fields, click "Submit"
=> Without this patch you got the software error
=> With this patch apply, you will get "No account was found with the
provided information."

Sign-off on counter patch.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 0d690ca383f49d62b1b040004e960596e1a39b2d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
opac/opac-password-recovery.pl