From 99e078b7042bb1b2d70a076c3648fe25d9c2aceb Mon Sep 17 00:00:00 2001 From: Kris Sinnaeve Date: Tue, 16 Apr 2019 21:37:17 +0000 Subject: [PATCH] Bug 22139: Fields of ACCTDETAILS email not populating To test: * Make sure AutoEmailOpacUser is set to "send" * Create a new patron with a username and password, and an email address * In Kohadevbox, check the mail (usually you can type "mail" and go down to the last message) - these do not go into the message queue and they are processed immediately. notice that the email does not have <> <> <> Apply this patch, restart the things, retest as above. Signed-off-by: Hayley Mapley Signed-off-by: Martin Renvoize --- members/memberentry.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/members/memberentry.pl b/members/memberentry.pl index b7a3920342..166302006b 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -436,6 +436,7 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){ warn "Patron creation failed! - $@"; # Maybe we must die instead of just warn } else { $borrowernumber = $patron->borrowernumber; + $newdata{'borrowernumber'} = $borrowernumber; } # If 'AutoEmailOpacUser' syspref is on, email user their account details from the 'notice' that matches the user's branchcode. -- 2.20.1