Bugzilla – Attachment 59662 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]
y# Attachment to 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.28 KB, created by
Liz Rea
on 2017-01-31 02:33:30 UTC
(
hide
)
Description:
y# Attachment to Bug 17775 - Add new user with LDAP not works under Plack
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2017-01-31 02:33:30 UTC
Size:
1.28 KB
patch
obsolete
>From ba19dfd37010052d1f3d96612e589718426e29bb 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). > >Signed-off-by: Liz Rea <liz@catalyst.net.nz> >--- > 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 >-- >1.9.1
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