diff --git a/opac/opac-issue-note.pl b/opac/opac-issue-note.pl index f61b33cd8f..64f07fefbd 100755 --- a/opac/opac-issue-note.pl +++ b/opac/opac-issue-note.pl @@ -82,14 +82,14 @@ if ( $action eq 'issuenote' && C4::Context->preference('AllowCheckoutNotes') ) { ); my $to_address = $branch->branchemail || $branch->branchreplyto || C4::Context->ReplytoDefault || C4::Context->preference('KohaAdminEmailAddress'); - my $from_address = $patron->email || $patron->emailpro || $patron->B_email; + my $reply_address = $patron->email || $patron->emailpro || $patron->B_email; C4::Letters::EnqueueLetter({ letter => $letter, message_transport_type => 'email', borrowernumber => $patron->borrowernumber, to_address => $to_address, - from_address => $from_address, + reply_address => $reply_address, }); } } diff --git a/opac/svc/checkout_notes b/opac/svc/checkout_notes index a5682c8ceb..60b4d00bca 100755 --- a/opac/svc/checkout_notes +++ b/opac/svc/checkout_notes @@ -92,14 +92,14 @@ if ($is_ajax) { ); my $to_address = $branch->branchemail || $branch->branchreplyto || C4::Context->preference('ReplytoDefault') || C4::Context->preference('KohaAdminEmailAddress'); - my $from_address = $patron->email || $patron->emailpro || $patron->B_email; + my $reply_address = $patron->email || $patron->emailpro || $patron->B_email; C4::Letters::EnqueueLetter({ letter => $letter, message_transport_type => 'email', borrowernumber => $patron->borrowernumber, to_address => $to_address, - from_address => $from_address, + reply_address => $reply_address, }); } else { # note empty, i.e removed $status = "removed";