Bugzilla – Attachment 59644 Details for
Bug 17775
Add new user with LDAP not works under Plack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17775 - Add new user with LDAP not works under Plack
Bug-17775---Add-new-user-with-LDAP-not-works-under.patch (text/plain), 1.24 KB, created by
Dobrica Pavlinusic
on 2017-01-30 11:44:29 UTC
(
hide
)
Description:
Bug 17775 - Add new user with LDAP not works under Plack
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2017-01-30 11:44:29 UTC
Size:
1.24 KB
patch
obsolete
>From 5268ef874a6147d302e00e528cc877ddb103e697 Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >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). >--- > 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 a58f4e6..3a7c3e3 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.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17775
:
59644
|
59662
|
59722