Bugzilla – Attachment 52225 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: Software Error in OPAC password recovery when leaving form fields empty
Bug-16707-Software-Error-in-OPAC-password-recovery.patch (text/plain), 1.48 KB, created by
Marc Véron
on 2016-06-10 13:21:25 UTC
(
hide
)
Description:
Bug 16707: Software Error in OPAC password recovery when leaving form fields empty
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-06-10 13:21:25 UTC
Size:
1.48 KB
patch
obsolete
>From f600cbd16eaf26786a7fedfe2840235c122d5a4f Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Fri, 10 Jun 2016 15:12:29 +0200 >Subject: [PATCH] Bug 16707: Software Error in OPAC password recovery when > leaving form fields empty > >This patch fixes a software Error in OPAC password recovery when leaving form fields empty > >To reproduce: >- 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" > >Result: > >Software error: >Can't use an undefined value as an ARRAY reference at /usr/share/kohaclone/opac/opac-password-recovery.pl line 66. > >To test: >- Apply patch >- Verify that the error no longer occurs >--- > 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..37fa3a0 100755 >--- a/opac/opac-password-recovery.pl >+++ b/opac/opac-password-recovery.pl >@@ -63,7 +63,7 @@ if ( $query->param('sendEmail') || $query->param('resendEmail') ) { > elsif ($email) { > $search_results = [ Koha::Patrons->search( { -or => { email => $email, emailpro => $email, B_email => $email } } ) ]; > } >- if ( not $search_results || scalar @$search_results > 1 ) { >+ if ( not $search_results || eval { scalar @$search_results > 1 } ) { > $hasError = 1; > $errNoBorrowerFound = 1; > } >-- >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