Bugzilla – Attachment 9466 Details for
Bug 8057
Error when adding a patron with email address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8057 - Error when adding a patron with email address
Bug-8057---Error-when-adding-a-patron-with-email-a.patch (text/plain), 1.10 KB, created by
Kyle M Hall
on 2012-05-08 19:50:19 UTC
(
hide
)
Description:
Bug 8057 - Error when adding a patron with email address
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2012-05-08 19:50:19 UTC
Size:
1.10 KB
patch
obsolete
>From 60855a95cf05b311eeede5279a581098f1082a38 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 8 May 2012 15:49:10 -0400 >Subject: [PATCH] Bug 8057 - Error when adding a patron with email address > >Caused by code assuming a the variable $err is a hashref >when it is only a hashref if there is an error. >--- > members/memberentry.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 2d8cace..c8a6be1 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -354,7 +354,7 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){ > }; > if ( $@ ) { > $template->param(error_alert => $@); >- } elsif ( defined $err->{error} and $err->{error} eq "no_email" ) { >+ } elsif ( ref($err) eq "HASH" && defined $err->{error} and $err->{error} eq "no_email" ) { > $template->{VARS}->{'error_alert'} = "no_email"; > } else { > $template->{VARS}->{'info_alert'} = 1; >-- >1.7.2.5
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 8057
:
9466
|
9512