From 4740438b41573d24c6e83d182e2ce1cf6fc54545 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 30 Jan 2017 12:42:09 +0100 Subject: [PATCH] Bug 17775 - Add new user with LDAP not works under Plack This patch fixes internal server error: Undefined subroutine &C4::Auth_with_ldap::AddMember called at /srv/koha_ffzg/C4/Auth_with_ldap.pm line 213. It occurs only under plack, and it's strange since C4::Members does EXPORT AddMember and we are importing it into Auth_with_ldap.pm (and it does work under CGI). Signed-off-by: Liz Rea Signed-off-by: Jonathan Druart I did not test but trust author and signoffer. The change cannot hurt. Signed-off-by: Kyle M Hall --- C4/Auth_with_ldap.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm index a58f4e680e..3a7c3e3205 100644 --- a/C4/Auth_with_ldap.pm +++ b/C4/Auth_with_ldap.pm @@ -210,7 +210,7 @@ sub checkpw_ldap { return(1, $cardnumber, $local_userid); } } elsif ($config{replicate}) { # A2, C2 - $borrowernumber = AddMember(%borrower) or die "AddMember failed"; + $borrowernumber = C4::Members::AddMember(%borrower) or die "AddMember failed"; C4::Members::Messaging::SetMessagingPreferencesFromDefaults( { borrowernumber => $borrowernumber, categorycode => $borrower{'categorycode'} } ); } else { return 0; # B2, D2 -- 2.39.5