Bugzilla – Attachment 52276 Details for
Bug 16707
Software Error in OPAC password recovery when leaving form fields empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16707: Fix software error in OPAC password recovery when leaving form fields empty
Bug-16707-Fix-software-error-in-OPAC-password-reco.patch (text/plain), 1.45 KB, created by
Marc Véron
on 2016-06-12 09:21:54 UTC
(
hide
)
Description:
Bug 16707: Fix software error in OPAC password recovery when leaving form fields empty
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-06-12 09:21:54 UTC
Size:
1.45 KB
patch
obsolete
>From 6d621dd7ce67fd7fb3a4ac17cdf257702405a83d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 11 Jun 2016 15:27:04 +0100 >Subject: [PATCH] Bug 16707: Fix software error in OPAC password recovery when > leaving form fields empty >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > opac/opac-password-recovery.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl >index 2f7fbfe..257ca92 100755 >--- a/opac/opac-password-recovery.pl >+++ b/opac/opac-password-recovery.pl >@@ -54,7 +54,7 @@ if ( $query->param('sendEmail') || $query->param('resendEmail') ) { > #try with the main email > $email ||= ''; # avoid undef > my $borrower; >- my $search_results; >+ my $search_results = []; > > # Find the borrower by his userid or email > if ($username) { >-- >1.7.10.4
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 16707
:
52225
|
52252
|
52259
|
52276
|
52495