Bugzilla – Attachment 28409 Details for
Bug 12304
Creating a user via LDAP doesn't populate message preferences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
BUG 12304: LDAP auto-provisioning set default messaging preferences
BUG-12304-LDAP-auto-provisioning-set-default-messa.patch (text/plain), 1.20 KB, created by
Martin Renvoize (ashimema)
on 2014-05-21 14:20:23 UTC
(
hide
)
Description:
BUG 12304: LDAP auto-provisioning set default messaging preferences
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2014-05-21 14:20:23 UTC
Size:
1.20 KB
patch
obsolete
>From b12f638149511c2c2560188b37cc26f5fd8d0a77 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 21 May 2014 14:18:14 +0000 >Subject: [PATCH] BUG 12304: LDAP auto-provisioning set default messaging > preferences > >LDAP auto-provisioning should set default messaging preferences upon >creation of a user. >--- > C4/Auth_with_ldap.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm >index 3b40015..af2c2d8 100644 >--- a/C4/Auth_with_ldap.pm >+++ b/C4/Auth_with_ldap.pm >@@ -26,6 +26,7 @@ use C4::Context; > use C4::Members qw(AddMember changepassword); > use C4::Members::Attributes; > use C4::Members::AttributeTypes; >+use C4::Members::Messaging; > use C4::Auth qw(checkpw_internal); > use Koha::AuthUtils qw(hash_password); > use List::MoreUtils qw( any ); >@@ -188,6 +189,7 @@ sub checkpw_ldap { > } > } elsif ($config{replicate}) { # A2, C2 > $borrowernumber = AddMember(%borrower) or die "AddMember failed"; >+ C4::Members::Messaging::SetMessagingPreferencesFromDefaults( { borrowernumber => $borrower{'borrowernumber'}, categorycode => $borrower{'categorycode'} } ); > } else { > return 0; # B2, D2 > } >-- >1.7.10.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 12304
:
28409
|
28417
|
28855
|
28980
|
29114