projects
/
koha_fer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'kc/new/bug_6755' into kcmaster
[koha_fer]
/
opac
/
opac-userupdate.pl
diff --git
a/opac/opac-userupdate.pl
b/opac/opac-userupdate.pl
index
aa5858a
..
f8273ce
100755
(executable)
--- a/
opac/opac-userupdate.pl
+++ b/
opac/opac-userupdate.pl
@@
-48,6
+48,7
@@
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
# get borrower information ....
my ( $borr ) = GetMemberDetails( $borrowernumber );
# get borrower information ....
my ( $borr ) = GetMemberDetails( $borrowernumber );
+my ( $patronemail ) = GetFirstValidEmailAddress($borrowernumber);
my $lib = GetBranchDetail($borr->{'branchcode'});
# handle the new information....
my $lib = GetBranchDetail($borr->{'branchcode'});
# handle the new information....
@@
-80,6
+81,10
@@
if ( !$updateemailaddress || $updateemailaddress eq '' ) {
exit;
}
exit;
}
+if ( !$patronemail || $patronemail eq '' ) {
+ $patronemail = $updateemailaddress;
+};
+
if ( $query->param('modify') ) {
# get all the fields:
if ( $query->param('modify') ) {
# get all the fields:
@@
-117,7
+122,7
@@
EOF
$message .= "\n\nThanks,\nKoha\n\n";
my %mail = (
To => $updateemailaddress,
$message .= "\n\nThanks,\nKoha\n\n";
my %mail = (
To => $updateemailaddress,
- From => $
updateemailaddress
,
+ From => $
patronemail
,
Subject => "User Request for update of Record.",
Message => $message,
'Content-Type' => 'text/plain; charset="utf8"',
Subject => "User Request for update of Record.",
Message => $message,
'Content-Type' => 'text/plain; charset="utf8"',