Bugzilla – Attachment 41687 Details for
Bug 8753
Add forgot password link to OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8753 - [followup] fix error when no information is provided
Bug-8753---followup-fix-error-when-no-information-.patch (text/plain), 1.48 KB, created by
Liz Rea
on 2015-08-19 22:45:55 UTC
(
hide
)
Description:
Bug 8753 - [followup] fix error when no information is provided
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2015-08-19 22:45:55 UTC
Size:
1.48 KB
patch
obsolete
>From 0470b53ec67bdaa53e757b195e26cca7ceff5fdd Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Wed, 12 Aug 2015 16:27:21 +1200 >Subject: [PATCH] Bug 8753 - [followup] fix error when no information is > provided > >To test: > >All normal checks plus make sure that a nice error is displayed when no data is provided. > >fixing the deprecated thing >--- > opac/opac-password-recovery.pl | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > >diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl >index 0688931..bafdb1e 100755 >--- a/opac/opac-password-recovery.pl >+++ b/opac/opac-password-recovery.pl >@@ -54,7 +54,6 @@ if ( $query->param('sendEmail') || $query->param('resendEmail') ) { > $email ||= ''; # avoid undef > my $borrower; > my $search_results; >- > # Find the borrower by his userid or email > if( $username ){ > $search_results = [ Koha::Borrowers->search({ userid => $username }) ]; >@@ -62,8 +61,11 @@ if ( $query->param('sendEmail') || $query->param('resendEmail') ) { > elsif ( $email ){ > $search_results = [ Koha::Borrowers->search({-or => {email => $email, emailpro=> $email, B_email=>$email }}) ]; > } >- >- if(scalar @$search_results > 1){ # Many matching borrowers >+ if ( not $search_results ){ >+ $hasError = 1; >+ $errNoBorrowerFound = 1; >+ } >+ elsif(scalar @$search_results > 1){ # Many matching borrowers > $hasError = 1; > $errTooManyEmailFound = 1; > } >-- >1.9.1
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 8753
:
21502
|
21512
|
21521
|
21849
|
22175
|
22430
|
24586
|
24780
|
24781
|
24846
|
24853
|
24854
|
24855
|
24862
|
24906
|
24907
|
24908
|
25038
|
25039
|
25051
|
29111
|
33175
|
33176
|
34472
|
36819
|
37492
|
39049
|
39144
|
39165
|
39166
|
39167
|
39168
|
39827
|
41181
|
41192
|
41193
|
41455
|
41686
|
41687
|
41688
|
41706
|
43017
|
43183
|
43576
|
44305
|
44306
|
44307
|
44308
|
44309
|
44310
|
44311
|
44323
|
44324
|
44325
|
44326
|
44327
|
44329
|
44330
|
45209
|
45210
|
45211
|
45212
|
45213
|
45214
|
45215
|
45223
|
45224
|
45225
|
45226
|
45227
|
45228
|
45229
|
45230
|
46379
|
47164
|
47165
|
47166
|
47167
|
47168
|
47169
|
47170
|
47171
|
47357
|
47366