From 53863246991c7663a74dda35cb5609ab628920b1 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 5 Apr 2021 08:33:38 -0400 Subject: [PATCH] Bug 27812: Email should send for all new patron as per the syspref description Signed-off-by: Martin Renvoize Signed-off-by: Fridolin Somers --- members/memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 20154b3cc3..b1db2e4348 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -460,7 +460,7 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){ } # If 'AutoEmailOpacUser' syspref is on, email user their account details from the 'notice' that matches the user's branchcode. - if ( C4::Context->preference("AutoEmailOpacUser") == 1 && $newdata{'userid'} && $newdata{'password'}) { + if ( C4::Context->preference("AutoEmailOpacUser") ) { #look for defined primary email address, if blank - attempt to use borr.email and borr.emailpro instead my $emailaddr; if (C4::Context->preference("AutoEmailPrimaryAddress") ne 'OFF' && -- 2.39.5