# Suite 330, Boston, MA 02111-1307 USA
use strict;
-require Exporter;
+
use CGI;
use Mail::Sendmail;
);
# get borrower information ....
-my ( $borr, $flags ) = GetMemberDetails( $borrowernumber );
+my ( $borr ) = GetMemberDetails( $borrowernumber );
my $lib = GetBranchDetail($borr->{'branchcode'});
# handle the new information....
);
$template->param(
- errormessage => 'KohaAdminEmailAddress system preference
- is not set. Please visit the library to update your user record'
+ noadminemail => 1,
);
output_html_with_http_headers $query, $cookie, $template->output;
exit;
}
-if ( $query->{'modify'} ) {
+if ( $query->param('modify') ) {
# get all the fields:
my $message = <<"EOF";
To => $updateemailaddress,
From => $updateemailaddress,
Subject => "User Request for update of Record.",
- Message => $message
+ Message => $message,
+ 'Content-Type' => 'text/plain; charset="utf8"',
);
if ( sendmail %mail ) {
}
$borr->{'dateenrolled'} = format_date( $borr->{'dateenrolled'} );
-$borr->{'expiry'} = format_date( $borr->{'expiry'} );
+$borr->{'dateexpiry'} = format_date( $borr->{'dateexpiry'} );
$borr->{'dateofbirth'} = format_date( $borr->{'dateofbirth'} );
$borr->{'ethnicity'} = fixEthnicity( $borr->{'ethnicity'} );